コード例 #1
0
 public OutgoingPipe(NodeConnectionInfo connectionInfo, CancellationToken externalToken, PipeOptions options, TcpListenerPiper listenerPiper)
     : base(externalToken, options)
 {
     _connectionInfo = connectionInfo;
     _listenerPiper  = listenerPiper;
     _description    = _connectionInfo.ToString();
     _connectionTask = ConnectionTask();
 }
コード例 #2
0
 public IncomingPipe(CancellationToken externalToken, PipeOptions options, TcpClient client, TcpListenerPiper parent) : base(externalToken, options)
 {
     _parent         = parent;
     _description    = client.Client.RemoteEndPoint.ToString();
     _connectionTask = ConnectionTask(client);
 }