Allows to receive notifications from network listener.
More...
#include <network_listener.hpp>
Allows to receive notifications from network listener.
- Note
- These callback methods are executed in the listening network thread.
◆ ~Observer()
virtual kanzi::connect::NetworkListener::Observer::~Observer |
( |
| ) |
|
|
virtualdefault |
◆ onConnected()
virtual void kanzi::connect::NetworkListener::Observer::onConnected |
( |
int | clientId, |
|
|
NetworkListener * | listener ) |
|
inlinevirtual |
Callback to notify that connection has been established.
- Parameters
-
clientId | The id of the connected client. |
listener | Listener that triggered the notification. |
Reimplemented in kanzi::connect::p2p::P2PServer.
◆ onDisconnected()
virtual void kanzi::connect::NetworkListener::Observer::onDisconnected |
( |
int | clientId, |
|
|
NetworkListener * | listener ) |
|
inlinevirtual |
Callback to notify that connection has been terminated.
- Parameters
-
clientId | The id of the disconnected client. |
listener | Listener that triggered the notification. |
Reimplemented in kanzi::connect::p2p::P2PServer.
◆ onPacketReceived()
virtual void kanzi::connect::NetworkListener::Observer::onPacketReceived |
( |
int | clientId, |
|
|
NetworkListener * | listener ) |
|
inlinevirtual |
Callback to notify that there is incoming data.
- Parameters
-
clientId | The id of the client that sent data. |
listener | Listener that triggered the notification. |
Reimplemented in kanzi::connect::p2p::P2PServer.
The documentation for this class was generated from the following file:
- connect/network_listener.hpp