LogCabin
Namespaces | Defines
Server/ControlService.cc File Reference
#include <unistd.h>
#include "build/Protocol/ServerControl.pb.h"
#include "Core/Debug.h"
#include "RPC/ServerRPC.h"
#include "Server/ControlService.h"
#include "Server/Globals.h"
#include "Server/RaftConsensus.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.

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 96 of file ControlService.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines