public LazynetHandlerContext( IChannelHandlerContext context, LazynetSocketType socketType) { this.Context = context; this.SocketType = socketType; }
/// <summary> /// 配置外部服务器 /// </summary> /// <param name="port"></param> /// <param name="heartbeat"></param> /// <param name="type"></param> public void SetExternalServerConfig(int port, int heartbeat, LazynetSocketType type, string websocketPath) { this.Config.ExternalServerHeartbeat = heartbeat; this.Config.ExternalServerPort = port; this.Config.ExternalServerType = type; this.Config.ExternalServerWebsocketPath = websocketPath; }
/// <summary> /// 配置内部服务器 /// </summary> /// <param name="ip"></param> /// <param name="port"></param> /// <param name="type"></param> public void SetInteriorServerConfig(string ip, int port, LazynetSocketType type) { this.Config.InteriorServerIP = ip; this.Config.InteriorServerPort = port; this.Config.InteriorServerType = type; }
public void SetConfigInfo(int port, int heartbeat, LazynetSocketType socketType) { this.Config.Port = port; this.Config.Heartbeat = heartbeat; this.Config.SocketType = socketType; }
public LazynetChannelHandlerContext(IChannelHandlerContext ctx, LazynetSocketType type) { this.Context = ctx; this.Type = type; }