internal RealmServerArgs(LogonRealmExIn packet)
        {
            MCPCookie = packet.MCPCookie;
            MCPStatus = packet.MCPStatus;
            Ip = packet.Ip;
            Port = packet.Port;
            UniqueName = packet.UniqueName;

            MCPChunk1 = (byte[])packet.MCPChunk1.Clone();
            MCPChunk2 = (byte[])packet.MCPChunk2.Clone();
        }
Beispiel #2
0
        internal RealmServerArgs(LogonRealmExIn packet)
        {
            MCPCookie  = packet.MCPCookie;
            MCPStatus  = packet.MCPStatus;
            Ip         = packet.Ip;
            Port       = packet.Port;
            UniqueName = packet.UniqueName;

            MCPChunk1 = (byte[])packet.MCPChunk1.Clone();
            MCPChunk2 = (byte[])packet.MCPChunk2.Clone();
        }
Beispiel #3
0
        /// <summary>Handles the LogonRealmEx packet. Signals manager to start up Realm Server handler</summary>
        /// <param name="packet">The packet.</param>
        private void OnLogonRealmEx(ChatServerPacket packet)
        {
            LogonRealmExIn fromServer = new LogonRealmExIn(packet);

            LogServer(fromServer.ToString());

            if (!fromServer.IsSuccessful())
            {
                Fail(FailureArgs.FailureTypes.RealmLoginFailed, fromServer.ToString());
                return;
            }

            FireReadyToConnectToRealmServerEvent(new RealmServerArgs(fromServer));
        }
        /// <summary>Handles the LogonRealmEx packet. Signals manager to start up Realm Server handler</summary>
        /// <param name="packet">The packet.</param>
        private void OnLogonRealmEx(ChatServerPacket packet)
        {
            LogonRealmExIn fromServer = new LogonRealmExIn(packet);
            LogServer(fromServer.ToString());

            if (!fromServer.IsSuccessful())
            {
                Fail(FailureArgs.FailureTypes.RealmLoginFailed, fromServer.ToString());
                return;
            }

            FireReadyToConnectToRealmServerEvent(new RealmServerArgs(fromServer));
        }