Serial Framework C++ Edition

◆ OnConnect()

__event void OnConnect ( void *  Sender,
CwclServerClientConnection *const  Client,
const int  Error 
)

The event fires when a remote client is connected to the server.

Parameters
SenderThe object that initiated the event.
ClientThe CwclServerClientConnection represents a remote connected client.
ErrorThe connection operation result code. If the parameter is WCL_E_SUCCESS the connection to a remote device was established and the remote device is connected. Otherwise the connection was not established and the remote device is not connected.
See also
CwclServerClientConnection