TrinityCore
Loading...
Searching...
No Matches
AuthenticationPackets.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#include "
AuthenticationPackets.h
"
19
20
namespace
WorldPackets::Auth
21
{
22
WorldPacket
const
*
AuthChallenge::Write
()
23
{
24
_worldPacket
<<
uint32
(
DosZeroBits
);
25
_worldPacket
.
append
(
Challenge
.data(),
Challenge
.size());
26
_worldPacket
.
append
(
DosChallenge
.data(),
DosChallenge
.size());
27
28
return
&
_worldPacket
;
29
}
30
}
AuthenticationPackets.h
uint32
uint32_t uint32
Definition
Define.h:133
ByteBuffer::append
void append(T value)
Definition
ByteBuffer.h:129
WorldPacket
Definition
WorldPacket.h:27
WorldPackets::Auth::AuthChallenge::DosZeroBits
uint32 DosZeroBits
Definition
AuthenticationPackets.h:36
WorldPackets::Auth::AuthChallenge::Challenge
std::array< uint8, 4 > Challenge
Definition
AuthenticationPackets.h:34
WorldPackets::Auth::AuthChallenge::Write
WorldPacket const * Write() override
Definition
AuthenticationPackets.cpp:22
WorldPackets::Auth::AuthChallenge::DosChallenge
std::array< uint32, 8 > DosChallenge
Definition
AuthenticationPackets.h:35
WorldPackets::Packet::_worldPacket
WorldPacket _worldPacket
Definition
Packet.h:42
WorldPackets::Auth
Definition
AuthenticationPackets.cpp:21
server
game
Server
Packets
AuthenticationPackets.cpp
Generated on Sun May 10 2026 02:30:17 for TrinityCore by
1.9.8