Observer class that is used for notifications such as new connections or data.
More...
#include <connection_adapter_server.hpp>
|
| virtual bool | clientExists (size_t clientId) const =0 |
| | Check whether a client identifier is valid one. More...
|
| |
| virtual void | onConnected (size_t) |
| | Notification of a newly connected client. More...
|
| |
| virtual void | onDisconnected (size_t) |
| | Notification of a disconnected client. More...
|
| |
| virtual void | onReceive (size_t, const vector< char > &) |
| | Notification of new data from a a client. More...
|
| |
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 |
| ) |
|
|
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 |
| ) |
|
|
inlinevirtual |
Notification of a disconnected client.
- Parameters
-
| clientId | The id of the disconnected client. |
◆ onReceive()
| virtual void kanzi::connect::ConnectionAdapter::Observer::onReceive |
( |
size_t |
, |
|
|
const vector< char > & |
|
|
) |
| |
|
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