SocketTools .NET Edition

InternetServer.Abort Method ()

Abort the connection with a remote host.

[Visual Basic]
Overloads Public Sub Abort()
[C#]
public void Abort();

Remarks

The Abort method immediately terminates the client connection, without waiting for any remaining data in the socket buffer to be written out. This method should only be used when the connection must be closed immediately. If this method is used, the client will see the connection as being terminated abnormally.

It is recommended that applications using the Disconnect method unless it is absolutely necessary to terminate the connection and immediately release the socket handle.

This implementation of the method can only be used within a class event handler, or a method that has been invoked from within an event handler. If you need to call the Abort method outside of an event handler, you must explicitly specify the client handle.

See Also

InternetServer Class | SocketTools Namespace | InternetServer.Abort Overload List | Disconnect Method