Table of Contents

Struct RemoteConnection

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Represents a connection made to a remote listener.

public struct RemoteConnection : IDisposable
Implements
Inherited Members

Properties

HasStream

Gets whether a Stream is available.

public bool HasStream { get; }

Property Value

bool

RemoteEndPoint

Gets the remote endpoint of the connection.

public readonly RemoteEndPoint? RemoteEndPoint { get; }

Property Value

RemoteEndPoint

Remarks

Stream

Gets the data Stream (null after MoveStream is called).

public readonly SshDataStream? Stream { get; }

Property Value

SshDataStream

Methods

Dispose()

Disposes the Stream when not moved.

public void Dispose()

MoveStream()

Transfers ownership of the Stream to the caller for handling the connection.

public SshDataStream MoveStream()

Returns

SshDataStream

The Stream.