Serial Framework C++ Edition

◆ OnClosed()

__event void OnClosed ( void *  Sender,
const int  Reason 
)

The event fires when the server is closed.

Parameters
SenderThe object that initiated the event.
ReasonThe disconnection code. If the parameter is WCL_E_SUCCESS the connection was closed by the Disconnect call. Otherwise indicates the disconnection reason.