Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public DefaultServerUnsafe(AbstractChannel channel) : base(channel)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 public DefaultServerUnsafe(AbstractChannel channel) : base(channel)
 {
 }