TwclRfCommServer.DoDisconnect(TwclRfCommServerClientConnection,Integer) Method

Fires the OnDisconnect event.

Namespace: wclBluetooth
protected
 procedure DoDisconnect(const Client: TwclRfCommServerClientConnection;
 const Reason: Integer); virtual;

Parameters

Client
Type: TwclRfCommServerClientConnection

The wclConnections.TwclServerClientConnection represents a remote connected client.

Reason
Type: Integer

The disconnection code. If the parameter is wclErrors.WCL_E_SUCCESS the connection was closed by the Disconnect call. Otherwise indicates the disconnection reason.