2003-12-21 Michael Koch <konqueror@gmx.de>

* gnu/java/net/PlainDatagramSocketImpl.java
	(mcastGrp): Added documentation.

From-SVN: r74896
This commit is contained in:
Michael Koch 2003-12-20 23:04:44 +00:00 committed by Michael Koch
parent 4e24f93733
commit 59bed4cab5
2 changed files with 20 additions and 2 deletions

View file

@ -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

View file

@ -211,8 +211,21 @@ public final class PlainDatagramSocketImpl extends DatagramSocketImpl
*/
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