Kanzi Connect  3.9.8
Kanzi Connect C++ API
kanzi::connect::ClientConnectionAdapter::Observer Class Reference

Observer class that allows to receive notifications from the connection adapter. More...

#include <connection_adapter_client.hpp>

Inheritance diagram for kanzi::connect::ClientConnectionAdapter::Observer:
kanzi::connect::NetworkListenerClient

Public Member Functions

virtual void onConnected ()
 Notifies that the connection was established. More...
 
virtual void onDisconnected ()
 Notifies that the connection was terminated. More...
 
virtual void onReceive (const vector< char > &data)
 Notifies that data was received from server. More...
 
virtual ~Observer ()
 

Detailed Description

Observer class that allows to receive notifications from the connection adapter.

Constructor & Destructor Documentation

◆ ~Observer()

virtual kanzi::connect::ClientConnectionAdapter::Observer::~Observer ( )
inlinevirtual

Member Function Documentation

◆ onConnected()

virtual void kanzi::connect::ClientConnectionAdapter::Observer::onConnected ( )
inlinevirtual

Notifies that the connection was established.

Due the internal locking, removeObserver cannot be called from this routine.

◆ onDisconnected()

virtual void kanzi::connect::ClientConnectionAdapter::Observer::onDisconnected ( )
inlinevirtual

Notifies that the connection was terminated.

Due the internal locking, removeObserver cannot be called from this routine.

◆ onReceive()

virtual void kanzi::connect::ClientConnectionAdapter::Observer::onReceive ( const vector< char > &  data)
inlinevirtual

Notifies that data was received from server.

Parameters
dataData that was received. Due the internal locking, removeObserver cannot be called from this routine.

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