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

In version 1 of the protocol, this is the header format for requests from clients to servers. 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

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.

Detailed Description

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.


Member Function Documentation

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

Warning:
This does not modify prefix.

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.

Warning:
This does not modify prefix.

Definition at line 44 of file Protocol.cc.


Member Data Documentation

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.


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