Packet format
int32 32-bit unsigned integer
1 byte bits 7..0 of value 1 byte bits 15..8 of value 1 byte bits 23..16 of value 1 byte bits 31..24 of value
Word
int32 Size Number of bytes in word, excluding trailing null byte char[] Content Word contents -- must not contain any null bytes char Terminator Trailing null byte
Packet
int32 Sequence Bit 31: 0 = The command in this command/response pair originated on the server 1 = The command in this command/response pair originated on the client
Bit 30: 0 = Request, 1 = Response
Bits 29..0: Sequence number (this is used to match requests/responses in a full duplex transmission)
int32 Size Total size of packet, in bytes
int32 NumWords Number of words following the packet header
Word[N] Words N words
A packet cannot be more than 16384 bytes in size.
Bookmarks