Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomSSHForwardingClient.Destroy

destructor Destroy; override;
Refuses every forwarded connection from then on, ends each one in progress and waits until the thread serving it has finished with it, and leaves the SSH client's channel broker. Once the component is freed, no thread runs OnChannelExecute or uses the SSH client's channels on its behalf. A connection is ended by closing its channel, which ends an OnChannelExecute that returns once its channel leaves csConnected (one that does not return keeps the destructor waiting); a TstSSHForwardingClientSocket closes its connection to the target. No request goes to the server: call Close first to cancel the remote listener.