TwclServerConnection.DoDisconnect(TwclServerClientConnection,Integer) Method

Fires the OnDisconnect event.

Namespace: wclConnections
protected
 procedure DoDisconnect(const Client: TwclServerClientConnection;
 const Reason: Integer); virtual;

Parameters

Client
Type: TwclServerClientConnection

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