LogCabin
|
An interface for handling events generated by an OpaqueServer. More...
#include <OpaqueServer.h>
Public Member Functions | |
virtual | ~Handler () |
Destructor. | |
virtual void | handleRPC (OpaqueServerRPC serverRPC)=0 |
This method is overridden by a subclass and invoked when a new RPC arrives. |
An interface for handling events generated by an OpaqueServer.
The Handler's lifetime must outlive that of the OpaqueServer.
Definition at line 58 of file OpaqueServer.h.
virtual LogCabin::RPC::OpaqueServer::Handler::~Handler | ( | ) | [inline, virtual] |
Destructor.
Definition at line 63 of file OpaqueServer.h.
virtual void LogCabin::RPC::OpaqueServer::Handler::handleRPC | ( | OpaqueServerRPC | serverRPC | ) | [pure virtual] |
This method is overridden by a subclass and invoked when a new RPC arrives.
This will be called from the Event::Loop thread, so it must return quickly. It should call OpaqueServerRPC::sendReply() if and when it wants to respond to the RPC request.
Implemented in LogCabin::RPC::Server::RPCHandler.