Discuss this help topic in SecureBlackbox Forum

TElSSHClass.CloseIfNoActiveTunnels

TElSSHClass     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This property specifies whether SSH connection must be closed if the number of open tunnels goes to zero.

Declaration

[C#/Java]
    bool CloseIfNoActiveTunnels;

[VB.NET]
    Property CloseIfNoActiveTunnels As Boolean

[Pascal]
    property CloseIfNoActiveTunnels : boolean;

[C++]
    bool get_CloseIfNoActiveTunnels();
    void set_CloseIfNoActiveTunnels(bool Value);

[PHP]
    bool get_CloseIfNoActiveTunnels()
    void set_CloseIfNoActiveTunnels(bool $Value)

Description

    If this property is set to True, the SSH connection will be closed immediately after the last logical tunneled connection is closed. This may be reasonable if there are no more tunneled connections expected - for example, if only shell or command is tunneled.
    Set this property to False if you need to keep TElSSHServer or TElSSHClient alive after the last tunneled connection is closed.
    It's a good idea to set this property to False if local (or remote) port is forwarded, as there may be new connections accepted on this port, even if there are no active tunneled connections at the moment.
    It's recommended to set CloseIfNoActiveTunnels to True when TElShellSSHTunnel, TElCommandSSHTunnel, or TElSubsystemSSHTunnel is used. And to False when TElLocalPortForwardSSHTunnel, TElRemotePortForwardSSHTunnel, or TElX11ForwardSSHTunnel is used.

Discuss this help topic in SecureBlackbox Forum