Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }