Serial Framework C++ Edition

◆ Accept()

int Accept ( const tstring &  Description,
const unsigned short  PacketSize = 0xFFFF 
)

Accepts the client's connection request.

Parameters
DescriptionThe service's description.
PacketSizeThe maximum OBEX packet size. The minimum allowed value is 0x00FF. The default value is 0xFFFF.
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 accept the connection request.

If the method completed with success the ConnectionId property has valid connection ID that can be used to unique identify the connected client.

If method failed the connection request has been rejected by the implementation.