public UninitializedTcpConnection(IPAddress ipAddress, PortNumber portNumber) { IpAddress = ipAddress; PortNumber = portNumber; }
public async static Task<TcpConnection> OpenConnectionAsync(IPAddress ipAddress, PortNumber portNumber) { var client = new TcpClient (); await client.ConnectAsync (ipAddress, portNumber); return new TcpConnection (client); }
public TcpEndpoint (IPAddress ipAddress, PortNumber port) { this.IpAddress = ipAddress; this.Port = port; }