예제 #1
0
        /// <summary>
        /// Handles the StartupIn packet. This packet is sent in response to our StartupOut packet when
        /// we initially connected to the Realm Server. If successful, we request a list of characters
        /// on the account.
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnStartup(RealmServerPacket packet)
        {
            StartupIn fromServer = new StartupIn(packet);

            LogServer(fromServer);

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

            CharList2Out toServer = new CharList2Out(8);

            SendPacket(RealmServerPacketType.CHARLIST2, toServer.GetBytes());
        }
예제 #2
0
        /// <summary>
        /// Handles the StartupIn packet. This packet is sent in response to our StartupOut packet when
        /// we initially connected to the Realm Server. If successful, we request a list of characters
        /// on the account.
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnStartup(RealmServerPacket packet)
        {
            StartupIn fromServer = new StartupIn(packet);
            LogServer(fromServer);

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

            CharList2Out toServer = new CharList2Out(8);
            SendPacket(RealmServerPacketType.CHARLIST2, toServer.GetBytes());
        }