Iterates over IP addresses for the network interface.
Obtains the network address of the local system from getifaddrs() and calls
dg with a host and service name string for each of these addresses. If host
and service name string formatting failed for an address, dg is called with
a null address and the status code of the conversion function,
getnameinfo(). See the manpage of getnameinfo() for its status codes.
dg should return false to continue or true to stop iteration.
If dg isn't called and return value is true, getifaddrs() has failed;
in this case check errno and see the getnameinfo() manpage.
Iterates over IP addresses for the network interface.
Obtains the network address of the local system from getifaddrs() and calls dg with a host and service name string for each of these addresses. If host and service name string formatting failed for an address, dg is called with a null address and the status code of the conversion function, getnameinfo(). See the manpage of getnameinfo() for its status codes.
dg should return false to continue or true to stop iteration.
If dg isn't called and return value is true, getifaddrs() has failed; in this case check errno and see the getnameinfo() manpage.