[ RCOS.java Home | RCOS Home | David's Home ]

MailHeader CRC

Name:

MailHeader

Comment:

Mailbox address -- uniquely identifies a mailbox on a given machine. A mailbox is just a place for temporary storage for messages. typedef int MailBoxAddress;

The following class defines part of the message header. This is prepended to the message by the PostOffice, before the message is sent to the Network.

Collaborators:

Responsibilities:


class MailHeader {
  public:
    MailBoxAddress to;          // Destination mail box
    MailBoxAddress from;        // Mail box to reply to
    unsigned length;            // Bytes of message data (excluding the
                                // mail header)
};