A service class to manage clients on server side. Implements Connection Interface on server.
More...
#include <connection_manager.hpp>
A service class to manage clients on server side. Implements Connection Interface on server.
◆ ClientContainer
Container for connected clients.
◆ ConnectionManager()
Constructor.
- Parameters
-
connectDomain | The connect domain. |
messageRouterInterface | Interface to object that will handle incoming messages. |
diagManager | The diagnostics manager, used to deliver diagnostics related data. |
objectFactory | Factory interface to create connection adapters. |
◆ ~ConnectionManager()
kanzi::connect::ConnectionManager::~ConnectionManager |
( |
| ) |
|
|
override |
◆ addMessageHook()
Installs new message hook processor.
- Parameters
-
messageInterface | the message interface |
◆ addObserver()
void kanzi::connect::ConnectionManager::addObserver |
( |
Observer * | observer | ) |
|
Adds observer to listen for notifications on this service.
- Parameters
-
◆ beginClients()
ClientContainer::const_iterator kanzi::connect::ConnectionManager::beginClients |
( |
| ) |
const |
Return iterator to container for all connected clients (begin).
- Returns
- Iterator that points the beginning of the container.
◆ endClients()
ClientContainer::const_iterator kanzi::connect::ConnectionManager::endClients |
( |
| ) |
const |
Return iterator to container for all connected clients (end).
- Returns
- Iterator that points the end of the container.
◆ getClientIdManager()
ClientIdManager & kanzi::connect::ConnectionManager::getClientIdManager |
( |
| ) |
|
Retrieve the client id manager class.
- Returns
- reference to ClientIdManager instance.
◆ getConnectionAdapter()
ConnectionAdapter * kanzi::connect::ConnectionManager::getConnectionAdapter |
( |
const int | clientId | ) |
const |
Find the connection adapter that handles the connection for the given client.
- Parameters
-
clientId | Identifies the client |
- Returns
- Pointer to the connection adapter, null pointer if not found
◆ getConnectionAdapterObjectFactory()
◆ getNetworkListener()
Find the network listener that handlers the particular client.
- Parameters
-
clientId | the client identifier |
- Returns
- shared pointer to network listener object
◆ initialize()
◆ onAcquireSession()
◆ onResetServiceRequest()
◆ ping()
int kanzi::connect::ConnectionManager::ping |
( |
const int & | timeout | ) |
|
|
inlineoverrideprotected |
This interface is not intended to be called directly, but using a message filter to complete it truly asynchronously.
- Parameters
-
timeout | not used, returned. |
- Returns
- return the given timeout value.
◆ removeMessageHook()
Removes existing message hook processor.
- Parameters
-
messageInterface | the message interface |
◆ removeObserver()
void kanzi::connect::ConnectionManager::removeObserver |
( |
Observer * | observer | ) |
|
Remove observer to stop listening for notifications on this service.
- Parameters
-
◆ setHttpServer()
void kanzi::connect::ConnectionManager::setHttpServer |
( |
shared_ptr< CivetServer > | httpServer | ) |
|
Set HTTP server to handle HTTP requests.
- Parameters
-
httpServer | HTTP server to handle HTTP requests. |
◆ uninitialize()
void kanzi::connect::ConnectionManager::uninitialize |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following file:
- connection_service/connection_manager.hpp