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

PacketHeader CRC

Name:

PacketHeader

Comment:

The following class defines the network packet header. The packet header is prepended to the data payload by the Network driver, before the packet is sent over the wire. The format on the wire is:
packet header (PacketHeader)
data (containing MailHeader from the PostOffice!)

Collaborators:

Responsibilities:

class PacketHeader {
  public:
    NetworkAddress to;          // Destination machine ID
    NetworkAddress from;        // source machine ID
    unsigned length;            // bytes of packet data, excluding the
                                // packet header (but including the
                                // MailHeader prepended by the post office)
};