public void Logout(CGLogout packet) { int authkey = GameServer.GenerateAuthKey(); GLIncomingConnection lsic = new GLIncomingConnection(this.UserID, authkey); lsic.Write(ref GameServer.LoginServer.netstream); GCReconnectLogin answer = new GCReconnectLogin(GameServer.IPAddressLogin.ToString(), (uint)GameServer.PortLogin, authkey); answer.Write(ref netstream); }
public void IncomingConnection(GLIncomingConnection packet) { LConsole.WriteStatus("Received GLIncomingConnection {0}:{1}", packet.UserID, packet.AuthKey); LoginServer.AuthPlayers.Add(packet.AuthKey, packet.UserID); }