Abort Method  
 

Abort the specified client session, terminating its connection to the server.

Syntax

object.Abort( 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 aborted successfully. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The Abort method immediately closes the specified client socket, terminating its connection to the server. Any queued data in the socket's send and receive buffers will be discarded, and the client may terminate abnormally unless it is designed to handle aborted connections. It is not recommended that you use this method unless you understand the implications of doing so. To gracefully terminate the client connection, use the Disconnect method.

See Also

Disconnect Method, Stop Method