Observer class that is used for notifications such as new connections or data.
More...
#include <connection_adapter_server.hpp>
Observer class that is used for notifications such as new connections or data.
◆ clientExists()
virtual bool kanzi::connect::ConnectionAdapter::Observer::clientExists |
( |
size_t |
clientId | ) |
const |
|
pure virtual |
Check whether a client identifier is valid one.
- Parameters
-
clientId | Identifier of the client. |
- Returns
- True if client exists.
◆ onConnected()
virtual void kanzi::connect::ConnectionAdapter::Observer::onConnected |
( |
size_t |
clientId, |
|
|
ConnectionAdapter & |
adapter |
|
) |
| |
|
inlinevirtual |
Notification of a newly connected client.
- Parameters
-
clientId | The id of the connected client. |
◆ onDisconnected()
virtual void kanzi::connect::ConnectionAdapter::Observer::onDisconnected |
( |
size_t |
clientId, |
|
|
ConnectionAdapter & |
adapter |
|
) |
| |
|
inlinevirtual |
Notification of a disconnected client.
- Parameters
-
clientId | The id of the disconnected client. |
◆ onReceive()
virtual void kanzi::connect::ConnectionAdapter::Observer::onReceive |
( |
size_t |
clientId, |
|
|
const vector< char > & |
data |
|
) |
| |
|
inlinevirtual |
Notification of new data from a a client.
- Parameters
-
clientId | The id of the client that sent the data. |
data | The data that was received. |
The documentation for this class was generated from the following file:
- connect/connection/connection_adapter_server.hpp