Various fixes for the net subsystem: * errors thrown by InetSocketAddress are more explicit. * prevent NullPointerException when doing a comparison (ala Sun) (InetSocketAddress) * InetSocketAddress.toString should build a string with the internal requested hostname if that hostname cannot be solved. * InetAddress: - new LOOPBACK_BITS static field to store localhost address. - IPV6 compatibility - added isAnyAddress and isLoopbackAddress * NetworkInterface (optional but recommanded): - don't forget to load native library javanet - native call getRealNetworkInterfaces return a Hashtable now instead of a vector.
I commited parts of the patch to classpath and libgcj. I left IPv6 compatibility out because of total incompleteness. This will get merged with libgcj soon. I dont think its a good idea in NetworkInterface to use Hashtable instead of Vector.