|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Callback interface for asynchronous delivery of newly accepted connections. More...
#include <NetworkConnections.h>
Public Member Functions | |
| NetworkConnectionReceiver () | |
| virtual bool | receiveNetworkConnection (NetworkConnection *con)=0 |
| Called when the listener has accepted a new connection. | |
| virtual bool | registerError (uint16 error, TCPListener *con)=0 |
| Called when the listener encounters an error. | |
Callback interface for asynchronous delivery of newly accepted connections.
Implemented by objects (e.g. NetworkChannel internals) that want a TCPListener to run its own accept loop thread and hand over each inbound connection instead of the owner calling TCPListener::acceptConnection() synchronously.
Definition at line 393 of file NetworkConnections.h.
|
inline |
Definition at line 395 of file NetworkConnections.h.
|
pure virtual |
Called when the listener has accepted a new connection.
| con | The newly created connection; ownership transfers to the receiver, which must eventually delete it. |
|
pure virtual |
Called when the listener encounters an error.
| error | One of the NETWORKERROR_* codes. |
| con | The listener reporting the error (not owned by the receiver). |