This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu.java.net.PlainDatagramSocketImpl


Hi list,


I commited the attached patch to add some documentation to 
PlainDatagramSocketImpl.mcastGrp().


Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2475
diff -u -b -B -r1.2475 ChangeLog
--- ChangeLog	20 Dec 2003 22:54:26 -0000	1.2475
+++ ChangeLog	20 Dec 2003 22:58:51 -0000
@@ -1,3 +1,8 @@
+2003-12-21  Michael Koch  <konqueror@gmx.de>
+
+	* gnu/java/net/PlainDatagramSocketImpl.java
+	(mcastGrp): Added documentation.
+
 2003-12-20  Michael Koch  <konqueror@gmx.de>
 
 	* gnu/java/net/protocol/jar/Connection.java
Index: gnu/java/net/PlainDatagramSocketImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/PlainDatagramSocketImpl.java,v
retrieving revision 1.3
diff -u -b -B -r1.3 PlainDatagramSocketImpl.java
--- gnu/java/net/PlainDatagramSocketImpl.java	21 Oct 2003 12:29:43 -0000	1.3
+++ gnu/java/net/PlainDatagramSocketImpl.java	20 Dec 2003 22:58:51 -0000
@@ -211,8 +211,21 @@
    */
   public native Object getOption(int optID) throws SocketException;
   
-  private native void mcastGrp(InetAddress inetaddr, NetworkInterface netIf,
-		               boolean join) throws IOException;
+  /**
+   * Joins or leaves a broadcasting group on a given network interface.
+   * If the network interface is <code>null</code> the group is join/left on
+   * all locale network interfaces.
+   * 
+   * @param inetAddr The broadcast address.
+   * @param netIf The network interface to join the group on.
+   * @param join True to join a broadcasting group, fals to leave it.
+   *
+   * @exception IOException If an error occurs.
+   */
+  private native void mcastGrp(InetAddress inetAddr,
+		  	       NetworkInterface netIf,
+		               boolean join)
+    throws IOException;
 
   /**
    * Closes the socket

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]