Serial Framework C++ Edition

◆ Reject()

int Reject ( const tstring &  Description)

Rejects the connection request.

Parameters
DescriptionThe string description of the rejection reason.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

An application calls this method from DoConnect method or from OnConnect event handler to reject the connection request.