diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-11 01:17:19 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-11 01:17:19 +0000 |
| commit | d96296969502ea794088f26f3e8e92324640ba34 (patch) | |
| tree | 52d5c61480de7bafcb2350a66e100dff889e5727 /libjava/java/net/MulticastSocket.java | |
| parent | c4c9770c5f799e314ed4e8b7873b41769daf59c7 (diff) | |
| download | gcc-d96296969502ea794088f26f3e8e92324640ba34.tar.gz | |
2003-01-10 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
(ch): Description added.
(remotePort): Initialize with -1.
(connect): Doesnt throws SocketException.
* java/net/MulticastSocket.java
(setInterface): Merge with Classpath.
* java/net/ServerSocket.java
(closed): New member variable.
(bind): Check if socket is closed.
(close): Close an associated channel too, set new value to closed.
(isBound): Reindented.
(isClosed): Implemented.
* java/net/Socket.java
(closed): New member variable.
(bind): Check if socket is closed.
(connect): Check if socket is closed.
(close): Close an associated channel too, set new value to closed.
(isClosed): Implemented.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/MulticastSocket.java')
| -rw-r--r-- | libjava/java/net/MulticastSocket.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libjava/java/net/MulticastSocket.java b/libjava/java/net/MulticastSocket.java index 2700ebee511..2535a48bea0 100644 --- a/libjava/java/net/MulticastSocket.java +++ b/libjava/java/net/MulticastSocket.java @@ -1,5 +1,6 @@ /* MulticastSocket.java -- Class for using multicast sockets - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -163,13 +164,15 @@ public class MulticastSocket extends DatagramSocket /** * Sets the interface to use for sending multicast packets. * - * @param inf The new interface to use + * @param addr The new interface to use. * - * @exception SocketException If an error occurs + * @exception SocketException If an error occurs. + * + * @since 1.4 */ - public void setInterface(InetAddress inf) throws SocketException + public void setInterface(InetAddress addr) throws SocketException { - impl.setOption(SocketOptions.IP_MULTICAST_IF, inf); + impl.setOption(SocketOptions.IP_MULTICAST_IF, addr); } /** |
