[det]tcp_host_to_address(?HostName,
?Address)Translate between a machines host-name and it's (IP-)address. If
HostName is an atom, it is resolved using getaddrinfo()
and the IP-number is unified to Address using a term of the
format
ip(Byte1,Byte2,Byte3,Byte4)
. Otherwise, if Address
is bound to an ip(Byte1,Byte2,Byte3,Byte4)
term, it is
resolved by
gethostbyaddr()
and the canonical hostname is unified with
HostName.
- To be done
- This function should support more functionality provided by
gethostbyaddr, probably by adding an option-list.