Kanzi Connect  1.1.10
Kanzi Connect C++ API
kanzi::connect::NetworkListener::Observer Class Reference

Allows to receive notifications from network listener. More...

#include <network_listener.hpp>

Inheritance diagram for kanzi::connect::NetworkListener::Observer:
kanzi::connect::ConnectionManager kanzi::connect::p2p::P2PServer

Public Member Functions

virtual void onConnected (int, NetworkListener *)
 Callback to notify that connection has been established. More...
 
virtual void onDisconnected (int, NetworkListener *)
 Callback to notify that connection has been terminated. More...
 
virtual void onPacketReceived (int, NetworkListener *)
 Callback to notify that there is incoming data. More...
 

Detailed Description

Allows to receive notifications from network listener.

Note
These callback methods are executed in the listening network thread.

Member Function Documentation

◆ onConnected()

virtual void kanzi::connect::NetworkListener::Observer::onConnected ( int  ,
NetworkListener  
)
inlinevirtual

Callback to notify that connection has been established.

Parameters
clientIdThe id of the connected client.
listenerListener that triggered the notification.

Reimplemented in kanzi::connect::p2p::P2PServer.

◆ onDisconnected()

virtual void kanzi::connect::NetworkListener::Observer::onDisconnected ( int  ,
NetworkListener  
)
inlinevirtual

Callback to notify that connection has been terminated.

Parameters
clientIdThe id of the disconnected client.
listenerListener that triggered the notification.

Reimplemented in kanzi::connect::p2p::P2PServer.

◆ onPacketReceived()

virtual void kanzi::connect::NetworkListener::Observer::onPacketReceived ( int  ,
NetworkListener  
)
inlinevirtual

Callback to notify that there is incoming data.

Parameters
clientIdThe id of the client that sent data.
listenerListener that triggered the notification.

Reimplemented in kanzi::connect::p2p::P2PServer.


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