|
|
@ -16,10 +16,10 @@ |
|
|
|
// If the connection is reliable, you can disable the SOF byte and checksums.
|
|
|
|
// If the connection is reliable, you can disable the SOF byte and checksums.
|
|
|
|
// That can save up to 9 bytes of overhead.
|
|
|
|
// That can save up to 9 bytes of overhead.
|
|
|
|
|
|
|
|
|
|
|
|
// ,-----+----+-----+------+------------+- - - -+------------,
|
|
|
|
// ,-----+-----+-----+------+------------+- - - -+-------------,
|
|
|
|
// | SOF | ID | LEN | TYPE | HEAD_CKSUM | DATA | PLD_CKSUM |
|
|
|
|
// | SOF | ID | LEN | TYPE | HEAD_CKSUM | DATA | DATA_CKSUM |
|
|
|
|
// | 1 | ? | ? | ? | ? | ... | ? | <- size (bytes)
|
|
|
|
// | 0-1 | 1-4 | 1-4 | 1-4 | 0-4 | ... | 0-4 | <- size (bytes)
|
|
|
|
// '-----+----+-----+------+------------+- - - -+------------'
|
|
|
|
// '-----+-----+-----+------+------------+- - - -+-------------'
|
|
|
|
|
|
|
|
|
|
|
|
// !!! BOTH PEERS MUST USE THE SAME SETTINGS !!!
|
|
|
|
// !!! BOTH PEERS MUST USE THE SAME SETTINGS !!!
|
|
|
|
|
|
|
|
|
|
|
|