Example #1
0
 public StreamPipeChannel(Stream stream, EndPoint remoteEndPoint, EndPoint localEndPoint, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : base(pipelineFilter, options)
 {
     _stream        = stream;
     RemoteEndPoint = remoteEndPoint;
     LocalEndPoint  = localEndPoint;
     StartTasks();
 }
Example #2
0
 public VirtualChannel(IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : base(pipelineFilter, options)
 {
 }
Example #3
0
 public StreamPipeChannel(Stream stream, EndPoint remoteEndPoint, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : this(stream, remoteEndPoint, null, pipelineFilter, options)
 {
 }
Example #4
0
 public RelayPipeChannel(IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options, Pipe pipeIn, Pipe pipeOut)
     : base(pipelineFilter, RebuildOptionsWithPipes(options, pipeIn, pipeOut))
 {
     StartTasks();
 }
 public TcpPipeChannel(Socket socket, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : base(pipelineFilter, options)
 {
     _socket        = socket;
     RemoteEndPoint = socket.RemoteEndPoint;
     LocalEndPoint  = socket.LocalEndPoint;
     StartTasks();
 }
Example #6
0
 static ChannelOptions RebuildOptionsWithPipes(ChannelOptions options, Pipe pipeIn, Pipe pipeOut)
 {
     options.In  = pipeIn;
     options.Out = pipeOut;
     return(options);
 }
Example #7
0
 public TcpPipeChannel(Socket socket, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : base(pipelineFilter, options)
 {
     _socket = socket;
 }
Example #8
0
 public UdpPipeChannel(Socket socket, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options, IPEndPoint remoteEndPoint, string sessionIdentifier)
     : base(pipelineFilter, options)
 {
     _socket           = socket;
     _remoteEndPoint   = remoteEndPoint;
     SessionIdentifier = sessionIdentifier;
 }
Example #9
0
 public UdpPipeChannel(Socket socket, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options, IPEndPoint remoteEndPoint)
     : this(socket, pipelineFilter, options, remoteEndPoint, $"{remoteEndPoint.Address}:{remoteEndPoint.Port}")
 {
 }
Example #10
0
 public StreamPipeChannel(Stream stream, IPipelineFilter <TPackageInfo> pipelineFilter, ChannelOptions options)
     : base(pipelineFilter, options)
 {
     _stream = stream;
 }