LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::RPC::MessageSocket::Header Struct Reference

This is the header that precedes every message across the TCP socket. More...

List of all members.

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.

Detailed Description

This is the header that precedes every message across the TCP socket.

Definition at line 180 of file MessageSocket.h.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines