ConnectorBase
Performs a blocking read on the socket until length bytes are received.
protected static int SocketRead(Socket socket, byte[] buffer, int offset, int length, TimeSpan readTimeout)
Performs a blocking read on the socket until length bytes are received.
public abstract Task<Socket> ConnectAsync(IConnectionInfo connectionInfo, CancellationToken cancellationToken)
Establishes a socket connection to the specified host and port.
protected Task<Socket> SocketConnectAsync(string host, int port, CancellationToken cancellationToken)
Establishes a socket connection to the specified host and port.