aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/InetAddress.java
AgeCommit message (Collapse)AuthorFilesLines
2006-11-03InetAddress.java: Removed.Gary Benson1-819/+0
2006-11-03 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java: Removed. * java/net/natInetAddressNoNet.cc: Likewise. * java/net/natInetAddressPosix.cc: Likewise. * java/net/natInetAddressWin32.cc: Likewise. * java/net/VMInetAddress.java (getLocalHostname, lookupInaddrAny, getHostByAddr, getHostByName, aton): Replace glue methods with native ones. * java/net/natVMInetAddressNoNet.cc: New file. * java/net/natVMInetAddressPosix.cc: Likewise. * java/net/natVMInetAddressWin32.cc: Likewise. * Makefile.am, configure.ac: Reflect the above. * sources.am, Makefile.in, configure: Rebuilt. * java/net/natVMNetworkInterfaceWin32.cc (winsock2GetRealNetworkInterfaces): Create InetAddress objects using InetAddress.getByAddress. * gnu/java/net/natPlainSocketImplWin32.cc (accept, getOption): Likewise. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData, receive, getOption): Likewise. From-SVN: r118451
2006-10-032006-10-03 Gary Benson <gbenson@redhat.com>Gary Benson1-18/+18
* java/net/InetAddress.java (<clinit>): Reorder the static initializers. From-SVN: r117394
2006-10-022006-10-02 Gary Benson <gbenson@redhat.com>Gary Benson1-2/+8
* java/net/InetAddress.java (checkConnect): Reinstated. (loopbackAddress): Ensure initialized from non-null object. From-SVN: r117370
2006-09-20InetAddress.java: Mostly merged with Classpath.Gary Benson1-295/+332
2006-09-20 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java: Mostly merged with Classpath. * java/net/VMInetAddress.java: New file. * sources.am, Makefile.in: Rebuilt. * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Create InetAddress objects using InetAddress.getByAddress. * gnu/java/net/natPlainSocketImplPosix.cc (accept, getOption): Likewise. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData, receive, getLocalAddress): Likewise. From-SVN: r117075
2006-09-01InetAddress.java (getLocalHost): Refactor to avoid security check if ↵Gary Benson1-24/+12
getLocalHostname() fails and to provide... 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getLocalHost): Refactor to avoid security check if getLocalHostname() fails and to provide more meaningful exceptions it the security check fails. From-SVN: r116627
2006-09-01InetAddress.java (getByAddress): Create Inet4Address objects when passed ↵Gary Benson1-25/+16
IPv4-mapped IPv6 addresses. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByAddress): Create Inet4Address objects when passed IPv4-mapped IPv6 addresses. (getByName, getAllByName): Defer to the above to ensure that the correct Inet*Address objects are returned. From-SVN: r116622
2006-09-01InetAddress.java (getByName, [...]): Only perform security check when DNS ↵Gary Benson1-10/+12
lookups are required. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByName, getAllByName): Only perform security check when DNS lookups are required. From-SVN: r116621
2006-04-07InetAddress.java: Throw an UnknownHostException if lookup fails.Andrew Haley1-0/+3
2006-04-07 Andrew Haley <aph@redhat.com> * java/net/InetAddress.java: Throw an UnknownHostException if lookup fails. From-SVN: r112754
2005-06-30Update FSF addressKelley Cook1-2/+2
From-SVN: r101453
2005-04-282005-04-28 Michael Koch <konqueror@gmx.de>Michael Koch1-3/+3
* java/net/InetAddress.java (aton): Fixed javadoc. (lookup): Likewise. From-SVN: r98941
2005-04-26InetAddress.java: Made all hexadecimal numbers lowercase.Michael Koch1-9/+10
2005-04-26 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Made all hexadecimal numbers lowercase. Fixed typos in javadocs. (isSiteLocalAddress): Fixed handling of byte values. (isMCLinkLocal): Likewise. * java/net/Inet4Address.java (isMulticastAddress): Call super method. (isLoopbackAddress): Likewise. (isAnyLocalAddress): Likewise. (isLinkLocalAddress): Likewise. (isSiteLocalAddress): Likewise. (isMCGlobal): Likewise. (isMCNodeLocal): Likewise. (isMCLinkLocal): Likewise. (isMCSiteLocal): Likewise. (isMCOrgLocal): Likewise. (getHostAddress): Likewise. From-SVN: r98795
2005-04-262005-04-26 Sven de Marothy <sven@physto.se>Sven de Marothy1-1/+1
* java/net/InetAddress.java (toString): Don't print empty hostnames. From-SVN: r98793
2005-04-26InetAddress.java: Fixed typos in javadocs.Michael Koch1-6/+6
2005-04-26 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Fixed typos in javadocs. From-SVN: r98791
2005-04-192005-04-19 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+23
* java/net/InetAddress.java (InetAddress): Fixed javadoc comment. (aton): Likewise. (lookup): Added javadoc. (getFamily): Likewise. * java/net/ServerSocket.java (getChannel): Improved javadoc comment. From-SVN: r98419
2005-02-03InetAddress.java (InetAddress): Make a private copy of the address.David Daney1-1/+1
2005-02-02 David Daney <ddaney@avtrex.com> * java/net/InetAddress.java (InetAddress): Make a private copy of the address. * java/net/Inet4Address.java (getAddress): Return a copy of the address. * java/net/Inet6Address.java (Inet6Address): Use private copy of the address (getAddress): Return a copy of the address. (equals): Rewrote. From-SVN: r94664
2005-01-09re PR libgcj/17069 (InetAddress.getLocalHost() returns broken InetAddress ↵Michael Koch1-1/+3
object if hostname not set) 2005-01-09 Michael Koch <konqueror@gmx.de> PR libgcj/17069 * java/net/InetAddress.java (getLocalHost): Throw UnknownHostException if local hostname cannot be determined. From-SVN: r93115
2004-11-17InetAddress.java (getCanonicalHostName): Support IPv6 addresses.Michael Koch1-2/+8
2004-11-17 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java (getCanonicalHostName): Support IPv6 addresses. From-SVN: r90793
2004-11-162004-11-16 Michael Koch <konqueror@gmx.de>Michael Koch1-3/+3
* java/net/InetAddress.java (toString): Merged from GNU classpath. From-SVN: r90743
2004-10-18Inet4Address.java: Merged file header and javadocs.Michael Koch1-9/+4
2004-10-18 Michael Koch <konqueror@gmx.de> * java/net/Inet4Address.java: Merged file header and javadocs. * java/net/Inet6Address.java: Likewise. * java/net/InetAddress.java (getCanonicalHostName): Create Inet4Address object instead of InetAddress and add comment regarding IPv6. (toString): Simplified. From-SVN: r89211
2004-09-30InetAddress.java: Reformatted.Michael Koch1-32/+23
2004-09-30 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reformatted. (loopback): Initialize with Inet4Address object. (static): Initialize ANY_IF with Inet4Address object. (InetAddress): Removed unused package-private constructor. From-SVN: r88336
2004-08-13InetAddress.java (loopbackAddress): Renamed from localhostAddress.Bryce McKinlay1-11/+22
2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * java/net/InetAddress.java (loopbackAddress): Renamed from localhostAddress. (getByName): Return loopback address for null hostname, without security check. Use lookup(), not getAllByName. (getAllByName): Return loopback address for null hostname, without security check. * java/net/natInetAddressPosix.cc (lookup): Don't perform security check here. From-SVN: r85967
2004-04-20Authenticator.java, [...]: Fixed javadocs, coding style and argument names ↵Michael Koch1-82/+69
all over. 2004-04-20 Michael Koch <konqueror@gmx.de> * java/net/Authenticator.java, java/net/BindException.java, java/net/ConnectException.java, java/net/ContentHandler.java, java/net/ContentHandlerFactory.java, java/net/DatagramPacket.java, java/net/DatagramSocket.java, java/net/DatagramSocketImpl.java, java/net/DatagramSocketImplFactory.java, java/net/FileNameMap.java, java/net/HttpURLConnection.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/net/InetAddress.java, java/net/InetSocketAddress.java, java/net/JarURLConnection.java, java/net/MalformedURLException.java, java/net/MulticastSocket.java, java/net/NetPermission.java, java/net/NetworkInterface.java, java/net/NoRouteToHostException.java, java/net/PasswordAuthentication.java, java/net/PortUnreachableException.java, java/net/ProtocolException.java, java/net/ServerSocket.java, java/net/Socket.java, java/net/SocketAddress.java, java/net/SocketException.java, java/net/SocketImpl.java, java/net/SocketImplFactory.java, java/net/SocketOptions.java, java/net/SocketPermission.java, java/net/SocketTimeoutException.java, java/net/URI.java, java/net/URISyntaxException.java, java/net/URL.java, java/net/URLClassLoader.java, java/net/URLConnection.java, java/net/URLDecoder.java, java/net/URLEncoder.java, java/net/URLStreamHandler.java, java/net/URLStreamHandlerFactory.java, java/net/UnknownHostException.java, java/net/UnknownServiceException.java: Fixed javadocs, coding style and argument names all over. From-SVN: r80900
2004-03-202004-03-20 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+9
* java/net/InetAddress.java (getLocalHostname): Added javadoc. From-SVN: r79751
2004-03-162004-03-16 Norbert Frese <postfach@nfrese.net>Norbert Frese1-2/+2
* java/net/InetAddress.java (getByName): Handle hostname == "" case. From-SVN: r79529
2003-11-302003-11-30 Jeff Sturm <jsturm@one-point.com>Michael Koch1-18/+3
* java/net/InetAddress.java: (static): Don'f force DNS request for ANY_IF address. 2003-11-30 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/natInetAddressNoNet.cc, java/net/natInetAddressPosix.cc, java/net/natInetAddressWin32.cc: Reverted my last patch. From-SVN: r74074
2003-11-282003-11-28 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+17
* java/net/InetAddress.java (lookup): New method that doesnt lookup "0.0.0.0". (ImplLookup): Renamed from lookup. * java/net/natInetAddressNoNet.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressPosix.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressWin32.cc (ImplLookup): Renamed from lookup. From-SVN: r74026
2003-10-292003-10-29 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+1
* java/net/InetAddress.java (equals): Remove redundant obj == null check. * java/net/SocketPermission.java (equals): Likewise. * java/net/URL.java (equals): Likewise. (getURLStreamHandler): Likewise. From-SVN: r73034
2003-10-022003-10-02 Michael Koch <konqueror@gmx.de>Michael Koch1-13/+26
* java/net/InetAddress.java (zeros): Removed. (ANY_IF): Initalizie in static block. (static): Load library with native methods here and initialize ANY_IF. (isAnyLocalAddress): Check if equal to ANY_IF. (equals): Use addr directly instead of addr1. Simplify for loop. (toString): Rename "result" to "host" and add IP address allways. (getLocalHost): Merged documentation from classpath. * java/net/ServerSocket.java (ServerSocket): New package-private constructor used by java.nio. * java/net/URLConnection.java (getRequestProperties): Check if already connected. From-SVN: r72032
2003-09-29Fixed little typo.Michael Koch1-1/+1
From-SVN: r71900
2003-09-292003-09-29 Michael Koch <konqueror@gmx.de>Michael Koch1-13/+52
* java/net/InetAddress.java: (isMulticastAddress): Dont use local variable to store address length. Let the compiler optimize this. (getHostName): Merged dcoumentation from classpath. (getAddress): Likewise. (getHostAddress): Likewise. (hashCode): Likewise. (equals): Likewise. (toString): Likewise. (getByName): Likewise. (getAllByName): Likewise. From-SVN: r71899
2003-09-29InetAddress.java, URL.java: Reformated.Michael Koch1-48/+55
2003-09-29 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/URL.java: Reformated. From-SVN: r71897
2003-09-25InetAddress.java: Reorder imports, remove implementation comment.Michael Koch1-10/+7
2003-09-25 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reorder imports, remove implementation comment. (isMulticastAddress): Merged documentation from classpath. * java/net/URLConnection.java (setRequestProperty): Check key for null, fix documentation. (adREquestProperty): Check key for null, remove wrong implementation and replace it with comment to overwrite this method in subclasses, fix documentation. From-SVN: r71767
2003-09-22InetAddress.java: Moves around some code, reformats and adds documentation.Michael Koch1-53/+87
2003-09-22 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Moves around some code, reformats and adds documentation. No functional changes. From-SVN: r71649
2003-06-19HttpURLConnection.java, [...]: Reworked import statements.Michael Koch1-61/+55
2003-06-19 Michael Koch <konqueror@gmx.de> * java/net/HttpURLConnection.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/net/SocketImpl.java, java/net/URLClassLoader.java: Reworked import statements. * java/net/InetAddress.java (getByAddress): Simplified. * java/net/ServerSocket.java (ServerSocket): Moved special handling during bind operation to bind(). (bind): Handle different cases when trying to bind a socket. * java/net/URLConnection.java (getHeaderFieldDate): Merged with classpath. (getHeaderFieldInt): Likewise. From-SVN: r68198
2003-06-18InetAddress.java: Reformatted to better match classpath's version.Michael Koch1-13/+43
2003-06-18 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reformatted to better match classpath's version. * java/net/URL.java (equals): Simplified. * java/net/URLConnection.java (setDoInput): Revised documentation. (getDefaultUseCaches): Likewise. (setRequestProperty): Added @since tag. From-SVN: r68143
2003-05-02InetAddress.java: Merged class documentation with classpath.Michael Koch1-6/+14
2003-05-02 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Merged class documentation with classpath. * java/net/JarURLConnection.java: Explicitely import all used classes. * java/net/URL.java: Reformatting. * java/net/ServerSocket.java, java/net/Socket.java: New versions from classpath. From-SVN: r66376
2003-03-20InetAddress.java, [...]: Merged copyright statements with classpath for ↵Michael Koch1-8/+36
easier merging. 2003-03-20 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/JarURLConnection.java, java/net/PlainDatagramSocketImpl.java, java/net/PlainSocketImpl.java, java/net/URLConnection.java: Merged copyright statements with classpath for easier merging. From-SVN: r64611
2002-12-07InetAddress.java (toString): Use hostname when not null, don't do an ↵Mark Wielaard1-7/+8
explicit reverse getHostName() lookup. * java/net/InetAddress.java (toString): Use hostname when not null, don't do an explicit reverse getHostName() lookup. * java/net/Socket.java (setSocketImplFactory): When fac == null throw NullPointerException. From-SVN: r59902
2002-11-012002-11-01 Michael Koch <konqueror@gmx.de>Michael Koch1-28/+158
* java/net/InetAddress.java: (isAnyLocalAddress): Implemented. (isLoopbackAddress): Implemented, comment added. (isLinkLocalAddress): Implemented, documentation added. (isSiteLocalAddress): Implemented, documentation added. (isMCGlobal): Implemented, documentation added. (isMCNodeLocal): Implemented, documentation added. (isMCLinkLocal): Implemented, documentation added. (isMCSiteLocal): Implemented, documentation added. (isMCOrgLocal): Implemented, documentation added. (getHostName): Documentation added. (getCanonicalHostName): Implemented, documentation added. (getAddress): Documentation added. (hashCode): Documentation added. (equals): Documentation added. (toString): Fixed implementation. (getByAddress): Use Inet4Address and Inet6Address. (lookup): New linewrap. (getByName): SecurityManager check added, support Inet4Address and Inet6address, comments added. (getAllByName): SecurityManager check added, comments added. * java/net/Inet6Address.java: (Inet6Address): Initialize parent class with addr instead of null. * java/net/URL.java (equals): Documentation added. (getFile): Documentation added. (hashCode): Documentation added. * java/net/natInetAddress.cc: (aton): Fix IPv6 support. * java/net/natPlainDatagramSocketImpl.cc: (peek): Throw PortUnreachableException when suitable. (peekData): Throw PortUnreachableException when suitable. (send): Throw PortUnreachableException when suitable. (receive): Throw PortUnreachableException when suitable. From-SVN: r58704
2002-10-102002-10-08 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+118
* java/net/HttpURLConnection.java (getPermission): New method. (getErrorStream): New stub method. (getHeaderFieldDate): New stub method. * java/net/Inet4Address.java: (isLinkLocalAddress): Typo fixed. * java/net/InetAddress.java: (readResolve): New stubbed method (for serialization). (isAnyLocalAddress): New stubbed method. (isLoopbackAddress): New stubbed method. (isLinkLocalAddress): New stubbed method. (isSiteLocalAddress): New stubbed method. (isMCGlobal): New stubbed method. (isMCNodeGlobal): New stubbed method. (isMCLinkLocal): New stubbed method. (isMCSiteLocal): New stubbed method. (isMCOrgLocal): New stubbed method. (getCanonicalHostName): New stubbed method. (getByAddress): Create instances of Inet4Address/Inet6Address, instead of InetAddress, documentation added. * java/net/MulticastSocket.java (getInterface): Removed FIXME. (getNetworkInterface): New method. (setNetworkInterface): New method. * java/net/NetworkInterface.java: (toString): Use property "line.separator" instead of "\n". * java/net/URLConnection.java (getContent): New stubbed method. * java/net/URLStreamHandler.java: (equals): New stubbed method. (hostsEqual): New stubbed method. (hashCode): New stubbed method. * java/net/natNetworkInterface.cc: (getRealNetworkInterfaces): Create Inet4Address object instead of InetAddress. From-SVN: r58002
2002-10-052002-10-05 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+17
* java/net/InetAddress.java (getByAddress): Fixed documentation. (getByAddress): New method. * java/net/Inet4Address.java: New file. * java/net/URL.java (URL): Documentation added. (getContent): Documentation added. (getContent): New stubbed method. (getQuery): New method. (openConnection): Documentation added. (openStream): Documentation added. (setURLStreamHandlerFactory): Documentation added. * java/net/URI.java: New stub file. * Makefile.am (java_native_source_files): Added java/net/Inet4Address.java, java/net/Inet6Address.java and java/net/URI.java. * Makefile.in: Regenerated. From-SVN: r57841
2002-10-042002-10-04 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+39
* java/net/InetAddress.java: (isMulticastAddress): Added documentation. (getHostAddress): Added documentation. (toString): Added documentation. (getByAddress): Fixed documentation. (getByName): Added documentation. (getAllByName): Added documentation. (getLocalHost): Added documentation. From-SVN: r57814
2002-10-03InetAddress.java (class InetAddress): Removed final keyword.Michael Koch1-2/+24
2002-10-03 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java (class InetAddress): Removed final keyword. (equals): Fixed typo. (getByAddress): New method. From-SVN: r57779
2002-01-12InetAddress.java (ANY_IF): moved from ServerSocket.Mark Wielaard1-0/+4
* java/net/InetAddress.java (ANY_IF): moved from ServerSocket. * java/net/DatagramSocket.java (DatagramSocket): use ANY_IF from InetAddress. * java/net/MulticastSocket.java (MulticastSocket): Likewise. * java/net/Socket.java: Merge with Classpath. * java/net/ServerSocket.java: Likewise. From-SVN: r48797
2000-11-03InetAddress.java (addr): Renamed from 'address'.Warren Levy1-19/+64
* java/net/InetAddress.java (addr): Renamed from 'address'. (address): New field to match Serialized Form doc. (hostName): Renamed from 'hostname' to match Serialized Form doc. (family): New serialization field. (serialVersionUID): New field. (readObject): New method. (writeObject): New method. (getFamily): New native method. (InetAddress): Set family. * java/net/natInetAddress.cc (getFamily): New method. (addr): Renamed from 'address'. (hostName): Renamed from 'hostname' to match Serialized Form doc. * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'. * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'. Serialization mod. From-SVN: r37222
2000-06-27PropertyChangeEvent.java (oldVal): Renamed to oldValue.Warren Levy1-2/+2
* java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. (newVal): Renamed to newValue. * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt. * java/beans/beancontext/BeanContextServiceRevokedEvent.java (revokeNow): Renamed to invalidateRefs. * java/io/OptionalDataException.java: Updated FIXME. (eof): New placeholder field. (length); Ditto. * java/io/WriteAbortedException.java (message): Made transient. * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2. * java/lang/Throwable.java (stackTrace): Made transient. * java/net/InetAddress.java: Made Serializable. * java/security/KeyPair.java: Made Serializable. * java/security/Provider.java: Replaced with Classpath version that implements serialization and proper methods. * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats. (limits): Renamed to choiceLimits. Serialization changes per: http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html From-SVN: r34726
2000-03-07All files: Updated copyright information.Tom Tromey1-1/+1
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey1-1/+1
From-SVN: r31504
1999-06-18natInetAddress.cc (lookup): Preserve caller-supplied hostname in returned ↵Bryce McKinlay1-2/+3
InetAddress objects. * java/net/natInetAddress.cc (lookup): Preserve caller-supplied hostname in returned InetAddress objects. (getLocalHostname): Fix typo. * java/net/InetAddress.java (getByName): Set hostname on return object. (getLocalHost): Call lookup directly to ensure that a fully-qualified name is returned. From-SVN: r27587
1999-04-07Initial revisionTom Tromey1-0/+255
From-SVN: r26263