ClientConnectionAdapter::Observer¶
-
class
kanzi::connect::ClientConnectionAdapter::Observer Observer class that allows to receive notifications from the connection adapter.
Subclassed by NetworkListenerClient
Public Functions
-
inline virtual
~Observer()
-
inline virtual void
onConnected() Notifies that the connection was established.
Due the internal locking, removeObserver cannot be called from this routine.
-
inline virtual void
onDisconnected() Notifies that the connection was terminated.
Due the internal locking, removeObserver cannot be called from this routine.
-
inline virtual void
onReceive(const vector<char>&) Notifies that data was received from server.
- Parameters
data – Data that was received. Due the internal locking, removeObserver cannot be called from this routine.
-
inline virtual