C4 Engine
C4 Engine API Documentation

DomainNameResolver::GetAddress

Defined in:  C4Network.h
Returns the IP address found by a domain name resolution.
Prototype

NetworkAddress GetAddress(voidconst;

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

DomainNameResolver::GetResolveResult