LogCabin
|
In version 1 of the protocol, this is the header format for requests from clients to servers. 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 | |
RequestHeaderPrefix | prefix |
This is common to all versions of the protocol. | |
uint16_t | service |
This identifies which Service the RPC is destined for. | |
uint8_t | serviceSpecificErrorVersion |
This field tells the service what service-specific errors the client understands. | |
uint16_t | opCode |
This identifies which RPC is being executed, scoped to the service. |
In version 1 of the protocol, this is the header format for requests from clients to servers.
Definition at line 63 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 36 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 44 of file Protocol.cc.
This is common to all versions of the protocol.
RPC servers can always expect to receive this and RPC clients must always send this.
Definition at line 83 of file Protocol.h.
This identifies which Service the RPC is destined for.
See Protocol::Common::ServiceId.
Definition at line 89 of file Protocol.h.
This field tells the service what service-specific errors the client understands.
Clients should remain backwards-compatible, so that newer clients can understand older errors. Services should take care not to send a client a service-specific error that it doesn't understand.
Definition at line 97 of file Protocol.h.
This identifies which RPC is being executed, scoped to the service.
Definition at line 102 of file Protocol.h.