public MultiplexedTcpConnection(TcpClient tcpClient, Stream multiplexedOutputStream) : base(tcpClient.GetStream().Write) { this.tcpClient = tcpClient; outputPump = new MultiplexConnectionOutputPump(tcpClient.GetStream().Read, multiplexedOutputStream.Write, Id); outputPump.BeginRunPump(PumpComplete, null); }
public MultiplexedPipeConnection(NamedPipeServerStream pipeServer, QueueBufferedStream multiplexedOutputStream) : base(pipeServer.Write) { this.pipeServer = pipeServer; outputPump = new MultiplexConnectionOutputPump(pipeServer.Read, multiplexedOutputStream.Write, Id); outputPump.BeginRunPump(PumpComplete, null); }
public MultiplexedServiceTcpConnection(StreamConnection streamConnection, TcpClient tcpClient, int connectionId) : base(tcpClient.GetStream().Write, connectionId) { this.streamConnection = streamConnection; this.tcpClient = tcpClient; outputPump = new MultiplexConnectionOutputPump(tcpClient.GetStream().Read, streamConnection.Stream.Write, connectionId); outputPump.BeginRunPump(PumpCompleted, null); }
public MultiplexedServiceNamedPipeConnection(StreamConnection streamConnection, NamedPipeClientStream pipeClient, int connectionId) : base(pipeClient.Write, connectionId) { this.streamConnection = streamConnection; this.pipeClient = pipeClient; outputPump = new MultiplexConnectionOutputPump(pipeClient.Read, streamConnection.Stream.Write, connectionId); outputPump.BeginRunPump(PumpCompleted, null); }