LogCabin
Namespaces | Defines | Typedefs
Server/ClientService.cc File Reference
#include <string.h>
#include "build/Protocol/Client.pb.h"
#include "Core/Buffer.h"
#include "Core/ProtoBuf.h"
#include "Core/Time.h"
#include "RPC/ServerRPC.h"
#include "Server/RaftConsensus.h"
#include "Server/ClientService.h"
#include "Server/Globals.h"
#include "Server/StateMachine.h"

Go to the source code of this file.

Namespaces

namespace  LogCabin
namespace  LogCabin::Server

Defines

#define PRELUDE(rpcClass)
 Place this at the top of each RPC handler.

Typedefs

typedef RaftConsensus::ClientResult LogCabin::Server::Result

Define Documentation

#define PRELUDE (   rpcClass)

Place this at the top of each RPC handler.

Afterwards, 'request' will refer to the protocol buffer for the request with all required fields set. 'response' will be an empty protocol buffer for you to fill in the response.

Definition at line 88 of file ClientService.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines