cpp-l4end-framing

Framing

| F00D_MARKER (2 bytes) | msg length (4 bytes) | msg | DEAD_MARKER (2 bytes) |
  • F00D_MARKER — in hex: 0xF0, 0x0D

  • msg length — the length of the message in 1’s compliment

  • msg — the actual message

  • DEAD_MARKER — in hex: 0xDE, 0xAD