SocketTools .NET Edition

SshClient.KeepAlive Property

Gets and sets a value which determines if the client session should kept active.

[Visual Basic]
Public Property KeepAlive As Boolean
[C#]
public bool KeepAlive {get; set;}

Property Value

A boolean value which specifies if the client connection should be maintained over a long period of time. A value of true indicates that the client should attempt to keep the connection active, even if it is idle for more than two hours. A value of false specifies that the connection should be established normally.

Remarks

Setting the KeepAlive property to a value of true indicates that the client wishes to maintain a long-duration session with the server. It is only necessary to set this property to a value of true if the client session is interactive and the connection must be held open for more than two hours.

See Also