37 SetByName(pszHost, wPortDefault);
43 static bool GRAYCALL IsValidHostEntry(
const hostent* pHostEnt);
44 static const hostent*
GRAYCALL FindHostEntryByName(
const char* pszHostName);
46 bool SetAddrList(
const hostent* pHostEnt);
48 #ifdef USE_WINSOCK2_ADDR
50 static const addrinfo*
GRAYCALL FindAddrInfoByName(
const char* pszHostName,
NET_PORT_t wPortDefault = k_NET_PORT_INVALID,
sa_family_t nFamily = AF_UNSPEC);
51 static void GRAYCALL FreeAddrInfoX(
const addrinfo* pAddr);
52 bool SetAddrList(
const addrinfo* pAddr);
55 HRESULT SetByName(
const char* pszHost,
NET_PORT_t wPortDefault = k_NET_PORT_INVALID);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
short sa_family_t
enum of network family types. e.g. AF_UNSPEC=0, AF_INET = 2, AF_INET6 = 23, AF_NETBIOS = 17,...
Definition: cNetHost.h:19
Definition: cNetAddr.h:31
cNetAddressArray m_AddrList
List of cNetAddress resolved from hostname (String) on DNS.
Definition: cNetDNS.h:28
cNetDNS(const char *pszHost, NET_PORT_t wPortDefault=k_NET_PORT_INVALID)
Definition: cNetDNS.h:34
cNetDNS() noexcept
Definition: cNetDNS.h:31
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)