Serial Framework C++ Edition

◆ OnConnect()

__event void OnConnect ( void *  Sender,
const tstring &  Description 
)

The event fires when a client connects to the server.

Parameters
SenderThe object that initiated the event.
DescriptionThe client's description.

The server should accept connection by calling Accept method or reject connection by calling Reject method.