2024-07-09 16:41:43 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Socket.h"
|
|
|
|
#include "ehs/Str.h"
|
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
2024-07-24 01:36:20 -07:00
|
|
|
class EHS_LIB_IO BaseDNS
|
2024-07-09 16:41:43 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Str_8 Resolve(AddrType type, const Str_8 &hostname);
|
|
|
|
|
|
|
|
/// Resolves a hostname to an ip address.
|
|
|
|
/// @param [in] hostname The given hostname to resolve.
|
|
|
|
/// @returns The resulting ip address.
|
|
|
|
static Str_8 Resolve(const Str_8 &hostname);
|
|
|
|
};
|
|
|
|
}
|