Move code in several net/event classes to cpp to hide platform details

Move DNSLookupSync to dns.h/cpp
Move platform-specific functionality of ksm to ksm.cpp
This commit is contained in:
brainiac
2025-12-28 02:21:53 -08:00
parent 82f9f7a02a
commit b8deacca01
18 changed files with 795 additions and 624 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
#include "world/world_server_cli.h"
#include "common/events/player_events.h"
#include "common/memory/ksm.hpp"
#include "common/memory/ksm.h"
#include "cereal/archives/json.hpp"
#include "cereal/types/vector.hpp"
+2 -4
View File
@@ -24,8 +24,7 @@
#include "common/http/httplib.h"
#include "common/http/uri.h"
#include "common/ip_util.h"
#include "common/net/console_server.h"
#include "common/net/servertalk_server.h"
#include "common/net/dns.h"
#include "common/path_manager.h"
#include "common/repositories/character_expedition_lockouts_repository.h"
#include "common/repositories/character_task_timers_repository.h"
@@ -33,7 +32,6 @@
#include "common/rulesys.h"
#include "common/strings.h"
#include "common/zone_store.h"
#include "common/zone_store.h"
#include "world/adventure_manager.h"
#include "world/dynamic_zone_manager.h"
#include "world/login_server_list.h"
@@ -456,7 +454,7 @@ void WorldBoot::CheckForPossibleConfigurationIssues()
std::string config_address = c->WorldAddress;
if (!IpUtil::IsIPAddress(config_address)) {
config_address = IpUtil::DNSLookupSync(c->WorldAddress, 9000);
config_address = EQ::Net::DNSLookupSync(c->WorldAddress, 9000);
LogInfo(
"World config address using DNS [{}] resolves to [{}]",
c->WorldAddress,