22 #include <boost/asio/ip/address.hpp>
23 #include <boost/asio/ip/tcp.hpp>
48 : Region(region), Site(battlegroup),
Realm(index) { }
49 RealmHandle(
uint32 realmAddress) : Region((realmAddress >> 24) & 0xFF), Site((realmAddress >> 16) & 0xFF),
Realm(realmAddress & 0xFFFF) { }
57 return Realm < r.
Realm;
61 std::string GetAddressString()
const;
62 std::string GetSubRegionAddress()
const;
99 ip::tcp::endpoint GetAddressForClient(ip::address
const& clientAddr)
const;
100 uint32 GetConfigId()
const;
uint32 Realm
Definition: Realm.h:53
uint8 Region
Definition: Realm.h:51
bool operator<(RealmHandle const &r) const
Definition: Realm.h:55
std::string Name
Definition: Realm.h:92
AccountTypes AllowedSecurityLevel
Definition: Realm.h:96
Definition: method_options.pb.h:28
uint32 GetAddress() const
Definition: Realm.h:60
uint16 Port
Definition: Realm.h:91
ip::address ExternalAddress
Definition: Realm.h:88
uint16_t uint16
Definition: g3dmath.h:166
ip::address LocalSubnetMask
Definition: Realm.h:90
RealmType
Type of server, this is values from second column of Cfg_Configs.dbc.
Definition: Realm.h:69
uint8 Site
Definition: Realm.h:52
RealmHandle(uint32 realmAddress)
Definition: Realm.h:49
RealmHandle()
Definition: Realm.h:46
Battlenet::RealmHandle Id
Definition: Realm.h:86
ip::address LocalAddress
Definition: Realm.h:89
uint32_t uint32
Definition: Define.h:150
AccountTypes
Definition: Common.h:106
#define TC_SHARED_API
Definition: Define.h:128
uint16_t uint16
Definition: Define.h:151
RealmHandle(uint8 region, uint8 battlegroup, uint32 index)
Definition: Realm.h:47
uint32 Build
Definition: Realm.h:87
RealmFlags
Definition: Realm.h:27
uint8 Timezone
Definition: Realm.h:95
uint8_t uint8
Definition: Define.h:152
uint8 Type
Definition: Realm.h:93
RealmFlags Flags
Definition: Realm.h:94
float PopulationLevel
Definition: Realm.h:97