Added new DNS::Resolve static method and organized it per OS.

This commit is contained in:
2024-07-09 16:41:43 -07:00
parent 126fc92fae
commit 4e887b1ac2
23 changed files with 545 additions and 96 deletions

18
src/io/socket/BaseDNS.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "ehs/io/socket/BaseDNS.h"
#include "ehs/Log.h"
namespace ehs
{
Str_8 BaseDNS::Resolve(const AddrType type, const Str_8 &hostname)
{
EHS_LOG_INT(LogType::ERR, 0, "Unsupported Operating System.");
return {};
}
Str_8 BaseDNS::Resolve(const Str_8 &hostname)
{
EHS_LOG_INT(LogType::ERR, 0, "Unsupported Operating System.");
return {};
}
}