Re: Eliminate differences between Inet6AddressImpl_getLocalHostName() and Inet4AddressImpl_getLocalHostName()

2014-10-10 Thread Michael McMahon
Hi Volker, I agree on the refactoring proposal. That would be a useful thing to do. On the second point. Removing getnameinfo() and using AI_CANONNAME in getaddrinfo() instead, would not be the exact equivalent however. getnameinfo() with AI_CANONNAME is taking the canonical host name as reporte

Re: Eliminate differences between Inet6AddressImpl_getLocalHostName() and Inet4AddressImpl_getLocalHostName()

2014-10-10 Thread Michael McMahon
Actually, I think you are probably right that the comment about Solaris not returning a fqdn, is the reason why the reverse lookup was done and it is only doing the reverse lookup on Solaris and Linux (ipv4 only) The main concern I guess is just compatibility. There could be environments that