Address.toHostNameString

string toHostNameString() const

Attempts to retrieve the host name as a fully qualified domain name.

Returns

The FQDN corresponding to this Address, or null if

the host name did not resolve.

Throws

AddressException on error, or SocketFeatureException

if host name lookup for this address family is not available on the current system.