Serial Framework C++ Edition

◆ OnDisconnect()

__event void OnDisconnect ( void *  Sender,
CwclServerClientConnection *const  Client,
const int  Reason 
)

The event fires when a remote client has disconnected from the server.

The prototype of the OnDisconnect event handler for server connections.

Parameters
SenderThe object that initiated the event.
ClientThe CwclServerClientConnection represents a remote connected client.
ReasonThe disconnection code. If the parameter is WCL_E_SUCCESS the connection was closed by the Disconnect call. Otherwise indicates the disconnection reason.
See also
CwclServerClientConnection