Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::rpc::RpcSessionHandlerInterface Class Reference

Detailed Description

Used to receive notifications of RPC client session activity.

An object that implements the RpcSessionHandlerInterface can be passed to the RpcServer in the RpcServer's constructor. When clients connect to the RpcServer, NewClient() will be called with an RpcSession object.

Inheritance diagram for ola::rpc::RpcSessionHandlerInterface:
ola::OlaServer

Public Member Functions

virtual void NewClient (RpcSession *session)=0
 Called by the RpcServer when a client connects.
virtual void ClientRemoved (RpcSession *session)=0
 Called by the RpcServer when a client disconnects.

Member Function Documentation

virtual void ola::rpc::RpcSessionHandlerInterface::ClientRemoved ( RpcSession session)
pure virtual

Called by the RpcServer when a client disconnects.

Parameters
sessionthe RpcSession for the client.

Implemented in ola::OlaServer.

virtual void ola::rpc::RpcSessionHandlerInterface::NewClient ( RpcSession session)
pure virtual

Called by the RpcServer when a client connects.

Parameters
sessionthe RpcSession for the client.

Implemented in ola::OlaServer.


The documentation for this class was generated from the following file: