LogCabin
|
This is the header that precedes every message across the TCP socket. More...
Public Member Functions | |
void | fromBigEndian () |
Convert the contents to host order from big endian (how this header should be transferred on the network). | |
void | toBigEndian () |
Convert the contents to big endian (how this header should be transferred on the network) from host order. | |
Public Attributes | |
uint16_t | fixed |
The value 0xdaf4 encoded in big endian. | |
uint16_t | version |
Currently only version 1 is defined and supported. | |
uint32_t | payloadLength |
The length in bytes of the contents of the message, not including this header. | |
uint64_t | messageId |
A unique message ID assigned by the sender. |
This is the header that precedes every message across the TCP socket.
Definition at line 180 of file MessageSocket.h.
Convert the contents to host order from big endian (how this header should be transferred on the network).
Definition at line 108 of file MessageSocket.cc.
Convert the contents to big endian (how this header should be transferred on the network) from host order.
Definition at line 117 of file MessageSocket.cc.
The value 0xdaf4 encoded in big endian.
Definition at line 195 of file MessageSocket.h.
Currently only version 1 is defined and supported.
Big endian.
Definition at line 200 of file MessageSocket.h.
The length in bytes of the contents of the message, not including this header.
Big endian.
Definition at line 206 of file MessageSocket.h.
A unique message ID assigned by the sender.
Big endian.
Definition at line 211 of file MessageSocket.h.