aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-09-04 05:34:12 +0000
committerMichael Koch <konqueror@gmx.de>2002-09-04 05:34:12 +0000
commit3889eb49c437b874999e44ae08b80c7362cf2348 (patch)
tree77dc9dce7cad2f40349a1912bc3aa3240f8ceb89 /libjava
parentd8dad061f425b07fb75ea45bd53b076e3fcf7fad (diff)
2002-09-04 Michael Koch <konqueror@gmx.de>
* java/net/SocketOptions.java: added static variables to be JDK 1.4 compatible (SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS) git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@56782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/java/net/SocketOptions.java35
2 files changed, 40 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 22c7ddbd0bc..3bdb822de8e 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-04 Michael Koch <konqueror@gmx.de>
+
+ * java/net/SocketOptions.java: added static variables to be JDK 1.4
+ compatible (SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2,
+ IP_MULTICAST_LOOP, IP_TOS
+
2002-09-03 Tom Tromey <tromey@redhat.com>
* java/lang/Class.h (_getDeclaredMethod): Declare.
diff --git a/libjava/java/net/SocketOptions.java b/libjava/java/net/SocketOptions.java
index bf57450d037..fda637e8d06 100644
--- a/libjava/java/net/SocketOptions.java
+++ b/libjava/java/net/SocketOptions.java
@@ -51,6 +51,7 @@ package java.net;
*
* @author Aaron M. Renn (arenn@urbanophile.com)
* @author Warren Levy <warrenl@cygnus.com>
+ * @status should be completely JDK 1.4 compatible
*/
public interface SocketOptions
{
@@ -63,9 +64,10 @@ public interface SocketOptions
/**
* Option id for the SO_KEEPALIVE value
+ * @since 1.3
*/
static final int SO_KEEPALIVE = 0x8;
-
+
/**
* Option id for the SO_LINGER value
*/
@@ -99,6 +101,18 @@ static final int SO_RCVBUF = 0x1002; // 4098
static final int SO_REUSEADDR = 0x04; // 4
/**
+ * Sets SO_BROADCAST for a socket
+ * @since 1.4
+ */
+static final int SO_BROADCAST = 0x20; // 32
+
+/**
+ * Sets SO_OOBINLINE for a socket
+ * @since 1.4
+ */
+static final int SO_OOBINLINE = 0x1003; // 4099
+
+/**
* Option id for the TCP_NODELAY value
*/
static final int TCP_NODELAY = 0x01; // 1
@@ -108,6 +122,25 @@ static final int TCP_NODELAY = 0x01; // 1
*/
static final int IP_MULTICAST_IF = 0x10; // 16
+/**
+ * same as above
+ * @since 1.4
+ */
+static final int IP_MULTICAST_IF2 = 0x1F; // 31
+
+/**
+ * This option enables or disables local loopback of multicast datagrams.
+ * @since 1.4
+ */
+static final int IP_MULTICAST_LOOP = 0x12; // 18
+
+/**
+ * This option sets the type-of-service or traffic class field in the
+ * IP header for a TCP or UDP socket.
+ * @since 1.4
+ */
+static final int IP_TOS = 0x03; // 3
+
/*************************************************************************/
/*