Exemplo n.º 1
0
 public TunnelPipeline(IPipeline pipeline)
 {
     this.pipeline         = pipeline;
     inputPacket           = new TunnelPacket(this);
     reader                = new TunnelPacketReader(inputPacket);
     writer                = new TunnelPacketWriter(this);
     pipeline.Interrupted += OnInterrupted;
 }
Exemplo n.º 2
0
        void WriteTunnelPacket <TWriteState>(TunnelPacket packet, IOCallback <TWriteState> callback, TWriteState state)
        {
            var pipeline = tunnelPipeline.TransPipeline;

            pipeline.Output(
                (BufferPacket)packet.HeaderData,
                CompleteHeaderWrite <TWriteState>,
                new object[] { packet, callback, state }
                );
        }
Exemplo n.º 3
0
 public TunnelPacketReader(TunnelPacket tunnelPacket)
 {
     this.tunnelPacket = tunnelPacket;
 }