Example #1
0
 public override void Initial(NetworkHandlerPipeline pipeline)
 {
     pipeline.AddHandler(new LengthFieldBasedFrameDecoder(200 * 1024, 0, 4, 0, 4));
     pipeline.AddHandler(new LengthFieldPrepender(4, 0, false));
     pipeline.AddHandler(new MessageInProcessor(msgInitializer, msgDelegateProcessor));
     pipeline.AddHandler(new MessageOutProcessor());
 }
Example #2
0
 public override void Initial(NetworkHandlerPipeline pipeline, ConnectionType cnType)
 {
     if (protocolType != ProtocolType.Udp || (cnType != ConnectionType.Game && cnType != ConnectionType.Battle))
     {
         pipeline.AddHandler(new LengthFieldBasedFrameDecoder(204800, 0, 4, 0, 4));
         pipeline.AddHandler(new LengthFieldPrepender(4, 0, false));
     }
     pipeline.AddHandler(new SnappyDecoder());
     pipeline.AddHandler(new SnappyEncoder());
     pipeline.AddHandler(new MessageInProcessor(msgInitializer, msgDelegateProcessor));
     pipeline.AddHandler(new MessageOutProcessor());
 }
Example #3
0
 public abstract void Initial(NetworkHandlerPipeline pipeline, ConnectionType cnType);