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