From 59bed4cab5da93638d74b5633f42a7070489b763 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sat, 20 Dec 2003 23:04:44 +0000 Subject: 2003-12-21 Michael Koch * gnu/java/net/PlainDatagramSocketImpl.java (mcastGrp): Added documentation. From-SVN: r74896 --- libjava/ChangeLog | 5 +++++ libjava/gnu/java/net/PlainDatagramSocketImpl.java | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 25a1f80..bcbb24e 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-12-21 Michael Koch + + * gnu/java/net/PlainDatagramSocketImpl.java + (mcastGrp): Added documentation. + 2003-12-20 Michael Koch * gnu/java/net/protocol/jar/Connection.java diff --git a/libjava/gnu/java/net/PlainDatagramSocketImpl.java b/libjava/gnu/java/net/PlainDatagramSocketImpl.java index 9f710d3..a314651 100644 --- a/libjava/gnu/java/net/PlainDatagramSocketImpl.java +++ b/libjava/gnu/java/net/PlainDatagramSocketImpl.java @@ -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 null 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 -- cgit v1.1