[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
const char *SDLNet_ResolveIP(IPaddress *address)
Resolve the IPv4 numeric address in address->host, and return the hostname as a string.
Returns: a valid char pointer (string) on success. the returned hostname will have host and domain, as in "host.domain.ext". NULL is returned on errors, such as when it's not able to resolve the host name. The returned pointer is not to be freed. Each time you call this function the previous pointer's data will change to the new value, so you may have to copy it into a local buffer to keep it around longer.
|
See Also:
3.2.1 SDLNet_ResolveHost,
4.1 IPaddress