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