TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WardenMac.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef _WARDEN_MAC_H
20 #define _WARDEN_MAC_H
21 
22 #include "Cryptography/ARC4.h"
23 #include <map>
24 #include "Cryptography/BigNumber.h"
25 #include "ByteBuffer.h"
26 #include "Warden.h"
27 
28 class WorldSession;
29 class Warden;
30 
32 {
33  public:
34  WardenMac();
35  ~WardenMac();
36 
37  void Init(WorldSession* session, BigNumber* k) override;
39  void InitializeModule() override;
40  void RequestHash() override;
41  void HandleHashResult(ByteBuffer& buff) override;
42  void RequestData() override;
43  void HandleData(ByteBuffer& buff) override;
44 };
45 
46 #endif
Definition: BigNumber.h:28
Definition: ByteBuffer.h:70
virtual void HandleData(ByteBuffer &buff)=0
virtual void RequestHash()=0
virtual void HandleHashResult(ByteBuffer &buff)=0
friend class WardenMac
Definition: Warden.h:98
Definition: WardenMac.h:31
virtual void RequestData()=0
virtual void Init(WorldSession *session, BigNumber *k)=0
Definition: Warden.h:95
virtual ClientWardenModule * GetModuleForClient()=0
virtual void InitializeModule()=0
#define TC_GAME_API
Definition: Define.h:134
Player session in the World.
Definition: WorldSession.h:882
Definition: Warden.h:85