next up previous contents
Next: Message types Up: Detailed design Previous: Logging   Contents

Protocol

Each message in the protocol is a string composed of the following parts:

  1. 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 ends.

  2. 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.

  3. Message body - according to the message type.



Subsections

Zvika Brakerski 2001-05-09