DomainNameResolver::GetAddress
Defined in:
Returns the IP address found by a domain name resolution.
C4Network.h
Prototype
NetworkAddress GetAddress(void) const;
Description
The GetAddress
function returns a NetworkAddress
object containing the 32-bit IP address corresponding to a domain name that was passed to the NetworkMgr::ResolveAddress
function. The port number stored in the NetworkAddress
object is set to zero.If the domain name could not be resolved, then the IP address stored in the
NetworkAddress
object is set to zero. The DomainNameResolver::GetResolveResult
function can be called to determine whether a domain name resolution was successful.
See Also