Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::rpc::RpcSessionHandlerInterface Class Referenceabstract

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:
Inheritance graph
[legend]

Public Member Functions

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

Member Function Documentation

◆ ClientRemoved()

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.

◆ NewClient()

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: