Open Lighting Architecture: ola::rpc::RpcSessionHandlerInterface Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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:

## 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

## ◆ ClientRemoved()

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

Called by the RpcServer when a client disconnects.

Parameters

  session | the 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

  session | the RpcSession for the client.

Implemented in ola::OlaServer.

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

- include/ola/rpc/RpcSessionHandler.h