Example #1
0
        public void IncomingConnection(LGIncomingConnection packet)
        {
            GameServer.AuthPlayers.Add(packet.AuthKey, packet.UserID);

            GConsole.WriteStatus("Received LGIncomingConnection: {0}:{1}:{2}", packet.UserID, packet.PCName, packet.AuthKey);
        }
Example #2
0
        public void SelectPC(CLSelectPC packet)
        {
            int authkey = LoginServer.GenerateAuthKey();

            LGIncomingConnection gsic = new LGIncomingConnection(this.UserID, packet.Name, /*this.IPAddress.ToString(),*/ authkey);

            gsic.Write(ref LoginServer.GameServerList[this.WorldID].netstream);

            WorldInfo world = LoginServer.WorldInfoList[this.WorldID];

            LCReconnect answer = new LCReconnect();

            answer.GameServerIP = world.IPAddress;
            answer.GameServerPort = world.Port;
            answer.AuthKey = authkey;

            answer.Write(ref netstream);
        }