Rebex SFTP for .NET

ProxySocket.Connected Property

Gets a value indicating whether a ProxySocket is connected to a remote resource.

public bool Connected {get;}

Property Value

true if the ProxySocket is connected to a remote resource; otherwise, false.

Remarks

Gets the connection state of the ProxySocket. This property will return the latest known state of the ProxySocket. When it returns false, the ProxySocket was either never connected, or no longer connected. When it returns true, the ProxySocket was connected at the time of the last I/O operation or the Available property.

Note: There is no guarantee that the Socket is still connected even though Connected returns true.

See Also

ProxySocket Class | Rebex.Net Namespace