]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2005-04-19 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Tue, 19 Apr 2005 19:07:13 +0000 (19:07 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Tue, 19 Apr 2005 19:07:13 +0000 (19:07 +0000)
* 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

libjava/ChangeLog
libjava/java/net/InetAddress.java
libjava/java/net/ServerSocket.java

index 47d5f4f14b34bbacf79d784ad07a5002f244af3a..5c5ca3f486e821c2976f4be603e14aaae6a4101c 100644 (file)
@@ -1,3 +1,13 @@
+2005-04-19  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/InetAddress.java
+       (InetAddress): Fixed javadoc comment.
+       (aton): Likewise.
+       (lookup): Added javadoc.
+       (getFamily): Likewise.
+       * java/net/ServerSocket.java
+       (getChannel): Improved javadoc comment.
+
 2005-04-19  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
        * gnu/xml/dom/html2/DomHTMLParser.java:
index 5a3ec474cf9e6d9816f36e6d227bc587e73415a0..9e4d02f68d5f73c4c4c46c56a397aa5b1a6c7b86 100644 (file)
@@ -115,7 +115,7 @@ public class InetAddress implements Serializable
 
   /**
    * Initializes this object's addr instance variable from the passed in
-   * int array.  Note that this constructor is protected and is called
+   * byte array.  Note that this constructor is protected and is called
    * only by static methods in this class.
    *
    * @param ipaddr The IP number of this address as an array of bytes
@@ -541,15 +541,33 @@ public class InetAddress implements Serializable
   }
 
   /**
-   * If host is a valid numeric IP address, return the numeric address.
+   * If hostname  is a valid numeric IP address, return the numeric address.
    * Otherwise, return null.
+   *
+   * @param hostname the name of the host
    */
-  private static native byte[] aton (String host);
+  private static native byte[] aton(String hostname);
 
+  /**
+   * Looks up all addresses of a given host.
+   *
+   * @param hostname the host to lookup
+   * @param ipaddr FIXME
+   * @param all FIXME
+   *
+   * @return an array with all found addresses
+   */
   private static native InetAddress[] lookup (String hostname,
-                                             InetAddress addr, boolean all);
+                                             InetAddress ipaddr, boolean all);
 
-  private static native int getFamily (byte[] address);
+  /**
+   * Returns tha family type of an IP address.
+   *
+   * @param addr the IP address
+   *
+   * @return the family
+   */
+  private static native int getFamily (byte[] ipaddr);
 
   /**
    * Returns an InetAddress object representing the IP address of the given
index b0576bf4cd506d8b0569845f3ae02e9cfe6b05f8..50ea0bebe92535f9129dcaf54ddd55c6e616eab5 100644 (file)
@@ -399,11 +399,11 @@ public class ServerSocket
   }
 
   /**
-   * Returns the unique ServerSocketChannel object
+   * Returns the unique <code>ServerSocketChannel</code> object
    * associated with this socket, if any.
    *
-   * The socket only has a ServerSocketChannel if its created
-   * by ServerSocketChannel.open.
+   * <p>The socket only has a <code>ServerSocketChannel</code> if its created
+   * by <code>ServerSocketChannel.open()</code>.</p>
    *
    * @return the associated socket channel, null if none exists
    *