Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
resolvehostname.h File Reference
#include "socketaddress.h"
Include dependency graph for resolvehostname.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

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

Parameters
pszHostNameis the string of the remote host to resolve
familyeither AF_INET or AF_INET6
fNumericOnlyPrevents 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.
Returns
S_OK on success. Error code otherwise

Definition at line 24 of file resolvehostname.cpp.