예제 #1
0
 public LazynetServer(ILazynetSocketEvent socketEvent, LazynetServerConfig config)
 {
     this.BossGroup   = new MultithreadEventLoopGroup();
     this.WorkerGroup = new MultithreadEventLoopGroup();
     this.Config      = config;
     this.SocketEvent = socketEvent;
 }
예제 #2
0
 public LazynetServerInitializer(LazynetServerConfig config, ILazynetSocketEvent socketEvent)
 {
     this.SocketType    = config.SocketType;
     this.WebsocketPath = config.WebsocketPath;
     this.Heartbeat     = config.Heartbeat;
     this.SocketEvent   = socketEvent;
 }
예제 #3
0
 /// <summary>
 /// socketEvent绑定之前必须赋值
 /// </summary>
 /// <param name="config"></param>
 public LazynetServer(LazynetServerConfig config)
     : this(null, config)
 {
 }