Disconnect the specified client session from the server.
Syntax
object.Disconnect( Handle )
Parameters
- Handle
- An integer value that specifies the handle to the client
session.
Return Value
A value of zero is returned if the connection was terminated
successfully. Otherwise, a non-zero error code is returned which
indicates the cause of the failure.
Remarks
This method terminates the specified client connection, releasing
the socket handle that was allocated for the session. It is only
necessary to use this method if you want the server to explicitly
terminate a client connection. Normally the client will close its
connection to the server, the OnDisconnect event will fire and
the server will automatically close the socket handle allocated for
that client session.
See Also
Restart Method,
Stop Method
|