corda/classpath
Joel Dice 47d9039b69 switch from gethostbyname to getaddrinfo on POSIX systems
gethostbyname may return any combination of IPv4 and IPv6 addresses,
and it's not safe to assume the first address is IPv4, which is all
our code is currently prepared to handle.  In contrast, getaddrinfo
allows us to specify whether we want IPv4, IPv6, or both.

We should eventually make this switch on Windows as well, but the
status of getaddrinfo in Windows 2000 is not clear, and MinGW's
ws2tcpip.h only declares it for XP and above.

This commit also adds InetAddress.getByName for explicit DNS lookups.
2010-06-14 16:09:56 -06:00
..
avian ARM and UTF-8 work 2010-04-14 09:26:50 -06:00
java switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
java-io.cpp Improved (should now be complete) Unicode support (UTF-8 for *nix and UTF-16 for Windows). 2010-04-20 10:03:07 -06:00
java-lang.cpp replace calls to ExceptionOccurred with calls to ExceptionCheck 2009-12-16 19:25:03 -07:00
java-net.cpp switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
java-nio.cpp switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
java-util-zip.cpp throw OutOfMemoryError if malloc returns null pointer 2009-12-05 15:51:12 -07:00
java-util.cpp update copyright years 2009-12-02 19:08:29 -07:00
jni-util.h update copyright years 2009-12-02 19:08:29 -07:00