Exemple #1
0
        /// <summary>Handles the AuthInfo packet. Responds with AuthCheck packet</summary>
        /// <param name="packet">The packet.</param>
        private void OnAuthInfo(ChatServerPacket packet)
        {
            AuthInfoIn fromServer = new AuthInfoIn(packet);
            //LogServer(fromServer.ToString());

            AuthCheckOut toServer = new AuthCheckOut(settings.Owner);

            serverToken = fromServer.ServerToken;
            clientToken = toServer.ClientToken;

            SendPacket(toServer);
        }
        /// <summary>Handles the AuthInfo packet. Responds with AuthCheck packet</summary>
        /// <param name="packet">The packet.</param>
        private void OnAuthInfo(ChatServerPacket packet)
        {
            AuthInfoIn fromServer = new AuthInfoIn(packet);
            //LogServer(fromServer.ToString());

            AuthCheckOut toServer = new AuthCheckOut(settings.Owner);

            serverToken = fromServer.ServerToken;
            clientToken = toServer.ClientToken;

            SendPacket(toServer);
        }