LogCabin
|
This is the first part of the request header that RPC clients send, common to all versions of the protocol. More...
#include <Protocol.h>
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. |
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.
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.
This is the version of the protocol.
It should always be set to 1 for now.
Definition at line 55 of file Protocol.h.