TwclIrDAServer.DoDisconnect(TwclIrDAServerClientConnection,Integer) Method

Fires the OnDisconnect event.

Namespace: wclIrDAServers
protected
 procedure DoDisconnect(const Client: TwclIrDAServerClientConnection;
 const Reason: Integer); virtual;

Parameters

Client
Type: TwclIrDAServerClientConnection

The TwclIrDAServerClientConnection 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.