Next: Message types
Up: Detailed design
Each message in the protocol is a string composed of the
- Total message size (including the size) - 4 bytes
field (unsigned long). This is important in order to enable
the receiver of the message to know when the current message
- Message type - 4 bytes field (unsigned long). The
complete list of protocol messages is described below. Since
every type of message has a structure of its own, the
receiver needs to know which message they received.
- Message body - according to the message type.