Пример #1
0
 protected AbstractUnsafe(AbstractChannel channel)
 {
     this._channel            = channel;
     InvokeWritabilityChanged = () =>
     {
         if (channel.EventLoop.InEventLoop)
         {
             channel.Pipeline.FireChannelWritabilityChanged();
         }
         else
         {
             channel.EventLoop.Execute(InvokeWritabilityChangedUnsafe, channel);
         }
     };
     this.outboundBuffer = new ChannelOutboundBuffer(channel, InvokeWritabilityChanged);
 }
Пример #2
0
 public DefaultServerUnsafe(AbstractChannel channel) : base(channel)
 {
 }
Пример #3
0
 protected AbstractUnsafe(AbstractChannel channel)
 {
     this._channel = channel;
     InvokeWritabilityChanged = () =>
     {
         if (channel.EventLoop.InEventLoop)
         {
             channel.Pipeline.FireChannelWritabilityChanged();
         }
         else
         {
             channel.EventLoop.Execute(InvokeWritabilityChangedUnsafe, channel);
         }
     };
     this.outboundBuffer = new ChannelOutboundBuffer(channel, InvokeWritabilityChanged);
 }
Пример #4
0
 public DefaultServerUnsafe(AbstractChannel channel) : base(channel)
 {
 }