Disconnect the specified client connection from the server.
The Disconnect method terminates the active client connection with the server and closes the socket handle allocated by the class. Note that the client socket is not immediately released when the connection is terminated and will enter a wait state for two minutes. After the time wait period has elapsed, the socket will be released by the operating system. This is a normal safety mechanism to handle any packets that may arrive after the connection has been closed.
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 Disconnect method outside of an event handler, you must explicitly specify the client handle.
To immediately terminate the connection and release the socket, use the Abort method.
InternetServer Class | SocketTools Namespace | InternetServer.Disconnect Overload List