C4 Engine Terathon Software C4 Engine API Documentation

• Network Manager

API Links
Developer Links

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 which 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