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

This is the first part of the response header that servers 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

Status status
 The error code returned by the server.

Detailed Description

This is the first part of the response header that servers send, common to all versions of the protocol.

RPC clients can always expect to receive this and RPC servers must always send this. This needs to be separate struct because when a client receives a response, it might have a status of INVALID_VERSION, in which case the client may not assume anything about the remaining bytes in the message.

Definition at line 158 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 78 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 84 of file Protocol.cc.


Member Data Documentation

The error code returned by the server.

Definition at line 173 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