protected override void OnConnected(bool successed) { base.OnConnected(successed); if (successed) { ValidateServerTypePacket pkg = new ValidateServerTypePacket(); pkg.ServerType = ServerType.GatewayServer; pkg.IP = JUtil.GetLocalIP(); pkg.Port = GatewayServerConfig.Configuration.Port; SendTCP(pkg); } }
protected override void OnConnected(bool successed) { base.OnConnected(successed); if (successed) { ValidateServerTypePacket pkg = new ValidateServerTypePacket(); pkg.ServerType = ServerType; pkg.IP = JUtil.GetLocalIP(); pkg.Port = ListenPort; SendTCP(pkg); } }