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

This is the first part of the request header that RPC clients send, common to all versions of the protocol. More...

#include <Protocol.h>

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

uint8_t version
 This is the version of the protocol.

Detailed Description

This is the first part of the request header that RPC clients send, common to all versions of the protocol.

RPC servers can always expect to receive this and RPC clients must always send this. This needs to be separate struct because when a server receives a request, it does not know the type of the request header, as that depends on its version.

Definition at line 39 of file Protocol.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 24 of file Protocol.cc.

Convert the contents to big endian (how this header should be transferred on the network) from host order.

Definition at line 30 of file Protocol.cc.


Member Data Documentation

This is the version of the protocol.

It should always be set to 1 for now.

Definition at line 55 of file Protocol.h.


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