SocketTools .NET Edition

FtpClient.Disconnect Method 

Terminate the connection with the remote server.

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

Remarks

The Disconnect method terminates the connection with the remote host and closes the socket handle allocated by the class. Note that the 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.

See Also

FtpClient Class | SocketTools Namespace