Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
Go to the source code of this file.
Functions | |
HRESULT | ResolveHostName (const char *pszHostName, int family, bool fNumericOnly, CSocketAddress *pAddr) |
HRESULT | NumericIPToAddress (int family, const char *pszIP, CSocketAddress *pAddr) |
HRESULT NumericIPToAddress | ( | int | family, |
const char * | pszIP, | ||
CSocketAddress * | pAddr | ||
) |
Definition at line 67 of file resolvehostname.cpp.
HRESULT ResolveHostName | ( | const char * | pszHostName, |
int | family, | ||
bool | fNumericOnly, | ||
CSocketAddress * | pAddr | ||
) |
Converts a string contains a numeric address or FQDN into a socket address structure
pszHostName | is the string of the remote host to resolve |
family | either AF_INET or AF_INET6 |
fNumericOnly | Prevents DNS and just resolves numeric IP addresses (e.g. "192.168.1.2" |
pAddr | - OUT param. On success is filled with a valid socket addresss information. |
Definition at line 24 of file resolvehostname.cpp.