コード例 #1
0
        public DefaultChannelPipeline(AbstractChannel channel)
        {
            Contract.Requires(channel != null);

            this.channel = channel;

            this.tail = new TailContext(this);
            this.head = new HeadContext(this);

            this.head.Next = this.tail;
            this.tail.Prev = this.head;
        }
コード例 #2
0
            //public ChannelHandlerInvoker invoker() {
            //    // return the unwrapped invoker.
            //    return ((PausableChannelEventExecutor) eventLoop().asInvoker()).unwrapInvoker();
            //}

            protected AbstractUnsafe(AbstractChannel channel)
            {
                this.channel        = channel;
                this.outboundBuffer = new ChannelOutboundBuffer(channel);
            }
コード例 #3
0
ファイル: AbstractChannel.cs プロジェクト: dalong123/DotNetty
            //public ChannelHandlerInvoker invoker() {
            //    // return the unwrapped invoker.
            //    return ((PausableChannelEventExecutor) eventLoop().asInvoker()).unwrapInvoker();
            //}

            protected AbstractUnsafe(AbstractChannel channel)
            {
                this.channel = channel;
                this.outboundBuffer = new ChannelOutboundBuffer(channel);
            }
コード例 #4
0
 public DefaultServerUnsafe(AbstractChannel channel)
     : base(channel)
 {
     this.err = TaskEx.FromException(new NotSupportedException());
 }