<PackageReference Include="SSH.NET" Version="2016.0.0-beta3" />

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 bool IsErrorResumable(SocketError socketError)

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

Receives data from a bound Socketinto a receive buffer.

public static int ReadByte(Socket socket, TimeSpan timeout)

Reads a byte from the specified Socket.

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)

Sends a byte using the specified Socket.