corda/classpath/java/net
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
..
InetAddress.java switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
InetSocketAddress.java update NIO code to be more compatible with Java 2008-03-25 11:18:17 -06:00
MalformedURLException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
ServerSocket.java update NIO code to be more compatible with Java 2008-03-25 11:18:17 -06:00
Socket.java switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
SocketAddress.java update NIO code to be more compatible with Java 2008-03-25 11:18:17 -06:00
SocketException.java add minimal java.net.Socket implementation to support Socket.setTcpNoDelay 2008-11-22 15:32:53 -07:00
UnknownHostException.java switch from gethostbyname to getaddrinfo on POSIX systems 2010-06-14 16:09:56 -06:00
UnknownServiceException.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
URL.java various tweaks for Classpath compatibility 2009-06-06 20:32:44 -06:00
URLConnection.java Added a getContentLength() method to URLConnection 2008-07-15 09:36:52 -06:00
URLStreamHandler.java prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00