Packet Envelop and Payload Encoders/Decoders
hiii 
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
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.