Struct RemoteConnection
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
RemoteEndPoint
Gets the remote endpoint of the connection.
public readonly RemoteEndPoint? RemoteEndPoint { get; }
Property Value
Remarks
For ListenTcpAsync(string, int, CancellationToken), the type is RemoteIPEndPoint.
For ListenUnixAsync(string, CancellationToken), the value is null.
Stream
public readonly SshDataStream? Stream { get; }
Property Value
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.