methodTsnipClient.Stop
procedure Stop;
Tears the connection back down in order: closes the snip channel (which stops the server-side subsystem thread) then closes the underlying SSH transport. Call when the application is done with the connection. It may also be called from another thread during two parts of Start. While Start makes the SSH connection and logs in (SSHClient's ConnectToHost and Login), Stop cancels that and returns at once, and Start's thread sends SSH_MSG_DISCONNECT, closes the connection and raises - at once while it waits for the server, otherwise when the step under way, such as an OnSetKey handler, is done (see TstCustomSSHClient.Close); a Stop between ConnectToHost and Login closes the connection itself, and Start raises eSSHClientChannelError. While Start is waiting for the server to answer the SSH channel open (see ChannelOpenTimeout), Stop closes the SSH connection, and Start raises EsnipClosed at once. Not covered: a Stop in the moment between the login and that wait, while Start opens the channel (SSHClient.CreateChannel), or after the channel has opened, while Start logs in to Snif. A Stop that comes before Start has begun to connect does not stop it (see TstCustomSSHClient.Close). Freeing the client while Start runs on another thread is not supported: call Stop, and let Start return, first.