Table of Contents

Property Stream

Namespace
SshSharp
Assembly
SshSharp.dll

Stream

The connection as a duplex stream (asynchronous only): reads return what the remote program sends, and reads end (return 0) when it has finished sending. Writes go to it. Disposing the stream closes the connection. While nothing reads it, the server is not allowed to send more than the channel's window (ChannelWindowSize, 2 MiB by default), so a handler that stops reading slows the remote program down rather than buffering without limit. ShutdownSendAsync(CancellationToken) ends the writing side only.

public Stream Stream { get; }

Property Value

Stream