Property ConfigureSocket
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
ConfigureSocket
Sets socket options on the TCP connection this machine makes: to the destination, or to the first ProxyJump hop (see
ConfigureSocket). It runs after the settings ssh_config gives the socket (TCPKeepAlive,
on unless the configuration says no, and IPQoS), so what it sets wins. Not called with a ProxyCommand or a
Proxy, which make the connection; hosts reached through a ProxyJump hop are tunnels, with no socket of their own.
What it throws ends the attempt and is thrown from ConnectAsync as it is.
public Action<Socket>? ConfigureSocket { get; init; }