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; }
/// <summary> /// socketEvent绑定之前必须赋值 /// </summary> /// <param name="config"></param> public LazynetServer(LazynetServerConfig config) : this(null, config) { }