Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8171077

Use getaddrinfo/getnameinfo in Windows Inet4AddresImpl native code

XMLWordPrintable

    • b150
    • windows

        Inet4AddressImpl still uses the APIs gethostbyname and gethostbyaddr whereas the Unix Inet4AddressImpl and the Inet6AddressImpl variants on both Unix and Windows already use the more modern APIs getaddrinfo/getnameinfo.

        As per the Microsoft documentation, gethostbyname and gethostbyaddr are considered deprecated (cf. https://msdn.microsoft.com/en-us/library/windows/desktop/ms738524(v=vs.85).aspx )

              clanger Christoph Langer
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: