You are browsing as a guest. Sign up (or log in) to start making projects!

2h 4m 31s logged

Packet Envelop and Payload Encoders/Decoders

hiii :hii:

SPEC.md

so at first i made SPEC.md where i have decided on everything that it will have, all structures, handshake sequence, etc (please read it :3)

Packet structure

then i made a basic packet envelop struct

[1 byte: msg type] [4 bytes: payload length] [N bytes: payload]

that will be the structure, and i wrote WritePacket() and ReadPacket() functions for it, and also some tests

Payload structures

and i decided on payload structures for each message type and wrote encoder and decoder for all those types, except Done message type because its just one thing in payload
you can check in SPEC.md the payload structures


since i dont have anything ready to show, i will show the test output

1
22

Comments 0

No comments yet. Be the first!