示例#1
0
        private void CreateAccountOld()
        {
            byte[]     passwordHash = OldAuth.HashPassword(m_settings.Password);
            BncsPacket pck          = new BncsPacket((byte)BncsPacketId.CreateAccount2);

            pck.InsertByteArray(passwordHash);
            pck.InsertCString(m_settings.Username);

            Send(pck);
        }
        private async void CreateAccountOld()
        {
            byte[]     passwordHash = OldAuth.HashPassword(_settings.Password);
            BncsPacket pck          = new BncsPacket(BncsPacketId.CreateAccount2, _storage.Acquire());

            pck.InsertByteArray(passwordHash);
            pck.InsertCString(_settings.Username);

            await pck.SendAsync(_connection);
        }