Method ShutdownSendAsync
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
ShutdownSendAsync(CancellationToken)
Ends the writing side of Stream without closing the channel: the server is sent end-of-file
(SSH_MSG_CHANNEL_EOF), and what it sends can still be read. For a protocol where the end of a request is the end of the
stream.
public Task ShutdownSendAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancels waiting to send.
Returns
Remarks
Call it once the writes have completed, not while one is in progress. Writes after it throw InvalidOperationException, and a second call does nothing.
Exceptions
- ObjectDisposedException
The channel was disposed.