Finished implementing, now for the testing phase.

This commit is contained in:
2025-01-26 21:43:17 -08:00
parent 7bc4b9977d
commit 981b40d3b1
47 changed files with 2070 additions and 1597 deletions

View File

@@ -6,7 +6,7 @@
namespace ehs
{
Str_8 DNS::Resolve(const AddrType type, const Str_8 &hostname)
Str_8 DNS::Resolve(const IP type, const Str_8 &hostname)
{
WSADATA data = {};
@@ -20,9 +20,9 @@ namespace ehs
addrinfo* result = nullptr;
addrinfo req = {};
if (type == AddrType::IPV6)
if (type == IP::V6)
req.ai_family = AF_INET6;
else if (type == AddrType::IPV4)
else if (type == IP::V4)
req.ai_family = AF_INET;
Int_32 code = getaddrinfo(hostname, nullptr, &req, &result);