LogCabin
|
This is the first part of the response header that servers 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 | |
Status | status |
The error code returned by the server. |
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.
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.
The error code returned by the server.
Definition at line 173 of file Protocol.h.