Exemplo n.º 1
0
        /// <summary>Handles the LogonResponse2 packet. Responds by sending a QueryRealms2 Packet </summary>
        /// <param name="packet">The packet.</param>
        private void OnLogonResponse2(ChatServerPacket packet)
        {
            LogonResponse2In fromServer = new LogonResponse2In(packet);

            LogServer(fromServer.ToString());

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

            SendPacket(ChatServerPacketType.QUERYREALMS2, new byte[0]);
        }
Exemplo n.º 2
0
        /// <summary>Handles the LogonResponse2 packet. Responds by sending a QueryRealms2 Packet </summary>
        /// <param name="packet">The packet.</param>
        private void OnLogonResponse2(ChatServerPacket packet)
        {
            LogonResponse2In fromServer = new LogonResponse2In(packet);
            LogServer(fromServer.ToString());

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

            SendPacket(ChatServerPacketType.QUERYREALMS2, new byte[0]);
        }