Message header. (4) message start. (12) message type. (4) size. (4) checksum.
Synopsis
Declared in <protocol.h>
class CMessageHeader;
Member Functions
Name |
Description |
|
Constructors |
Returns the message type as a string. |
|
Returns whether the message type field contains a valid, well‐formed value. |
Data Members
Name |
Description |
Message type as a fixed‐width, null‐padded field. |
|
Size of the message payload in bytes. |
|
Checksum of the message payload. |
|
Network magic bytes marking the start of the message. |
Static Data Members
Name |
Description |
Byte offset of the checksum field within the header. |
|
Number of bytes used for the payload checksum. |
|
Total size of a serialized message header in bytes. |
|
Byte offset of the payload size field within the header. |
|
Number of bytes used to encode the payload size. |
|
Number of bytes reserved for the message type field. |
Created with MrDocs