Constructor SshExpect
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
SshExpect(SshSession, Encoding?)
Drives session: reads its standard output, writes its standard input.
public SshExpect(SshSession session, Encoding? encoding = null)
Parameters
sessionSshSessionThe session, for example a shell started with a terminal.
encodingEncodingHow the program's output and input are encoded; UTF-8 by default.
SshExpect(Stream, Stream, Encoding?)
Drives a program through its output and input streams.
public SshExpect(Stream output, Stream input, Encoding? encoding = null)
Parameters
outputStreamWhat the program writes: searched by ExpectAsync(string, CancellationToken).
inputStreamWhere SendAsync(string, CancellationToken) and SendLineAsync(string, CancellationToken) write.
encodingEncodingHow the program's output and input are encoded; UTF-8 by default.