<PackageReference Include="SSH.NET" Version="2023.0.1" />

SocketAbstraction

static class SocketAbstraction
public static bool CanRead(Socket socket)

public static bool CanWrite(Socket socket)

public static void ClearReadBuffer(Socket socket)

public static Socket Connect(IPEndPoint remoteEndpoint, TimeSpan connectTimeout)

public static void Connect(Socket socket, IPEndPoint remoteEndpoint, TimeSpan connectTimeout)

public static Task ConnectAsync(Socket socket, IPEndPoint remoteEndpoint, CancellationToken cancellationToken)

public static bool IsErrorResumable(SocketError socketError)

public static byte[] Read(Socket socket, int size, TimeSpan timeout)

public static int Read(Socket socket, byte[] buffer, int offset, int size, TimeSpan readTimeout)

public static Task<int> ReadAsync(Socket socket, byte[] buffer, CancellationToken cancellationToken)

public static int ReadByte(Socket socket, TimeSpan timeout)

public static void ReadContinuous(Socket socket, byte[] buffer, int offset, int size, Action<byte[], int, int> processReceivedBytesAction)

public static int ReadPartial(Socket socket, byte[] buffer, int offset, int size, TimeSpan timeout)

public static void Send(Socket socket, byte[] data)

public static void Send(Socket socket, byte[] data, int offset, int size)

public static void SendByte(Socket socket, byte value)