24 #include <boost/asio/ip/address.hpp>
25 #include <boost/asio/ip/tcp.hpp>
26 #include <boost/asio/io_service.hpp>
27 #include <boost/asio/deadline_timer.hpp>
44 namespace game_utilities
49 class GetAllValuesForAttributeResponse;
59 class RealmListUpdates;
67 typedef std::map<Battlenet::RealmHandle, Realm>
RealmMap;
76 RealmMap
const&
GetRealms()
const {
return _realms; }
80 std::unordered_set<std::string>
const&
GetSubRegions()
const {
return _subRegions; }
83 std::vector<uint8> GetRealmList(
uint32 build, std::string
const& subRegion)
const;
84 uint32 JoinRealm(
uint32 realmAddress,
uint32 build, boost::asio::ip::address
const& clientAddress, std::array<uint8, 32>
const& clientSecret,
90 void UpdateRealms(boost::system::error_code
const& error);
91 void UpdateRealm(
Battlenet::RealmHandle const&
id,
uint32 build,
const std::string& name, ip::address
const& address, ip::address
const& localAddr,
101 #define sRealmList RealmList::Instance()
boost::asio::ip::tcp::resolver * _resolver
Definition: RealmList.h:98
uint32 BugfixVersion
Definition: RealmList.h:36
uint32 MinorVersion
Definition: RealmList.h:35
uint32 Build
Definition: RealmList.h:33
std::unordered_set< std::string > const & GetSubRegions() const
Definition: RealmList.h:80
LocaleConstant
Definition: Common.h:115
Storage object for the list of realms on the server.
Definition: RealmList.h:64
RealmMap const & GetRealms() const
Definition: RealmList.h:76
uint32_t uint32
Definition: Define.h:150
static void Initialize(PCASC_SALSA20 pState, LPBYTE pbKey, DWORD cbKeyLength, LPBYTE pbVector)
Definition: CascDecrypt.cpp:81
AccountTypes
Definition: Common.h:106
#define TC_SHARED_API
Definition: Define.h:128
uint16_t uint16
Definition: Define.h:151
Definition: game_utilities_service.pb.h:204
boost::asio::deadline_timer * _updateTimer
Definition: RealmList.h:97
RealmFlags
Definition: Realm.h:27
Definition: game_utilities_service.pb.h:1249
uint8_t uint8
Definition: Define.h:152
RealmMap _realms
Definition: RealmList.h:94
uint32 HotfixVersion
Definition: RealmList.h:37
Definition: RealmList.h:31
std::unordered_set< std::string > _subRegions
Definition: RealmList.h:95
uint32 _updateInterval
Definition: RealmList.h:96
Definition: RealmList.pb.h:30
uint32 MajorVersion
Definition: RealmList.h:34
std::map< Battlenet::RealmHandle, Realm > RealmMap
Definition: RealmList.h:67