Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.net |
Provides the classes for implementing networking applications.
|
Modifier and Type | Field and Description |
---|---|
static long |
Long.MAX_VALUE
A constant holding the maximum value a
long can
have, 263-1. |
static int |
Integer.MAX_VALUE
A constant holding the maximum value an
int can
have, 231-1. |
static long |
Long.MIN_VALUE
A constant holding the minimum value a
long can
have, -263. |
static int |
Integer.MIN_VALUE
A constant holding the minimum value an
int can
have, -231. |
static int |
Long.SIZE
The number of bits used to represent a
long value in two's
complement binary form. |
static int |
Integer.SIZE
The number of bits used to represent an
int value in two's
complement binary form. |
Modifier and Type | Field and Description |
---|---|
static int |
SocketOptions.IP_MULTICAST_IF
Set which outgoing interface on which to send multicast packets.
|
static int |
SocketOptions.IP_MULTICAST_IF2
Same as above.
|
static int |
SocketOptions.IP_MULTICAST_LOOP
This option enables or disables local loopback of multicast datagrams.
|
static int |
SocketOptions.IP_TOS
This option sets the type-of-service or traffic class field
in the IP header for a TCP or UDP socket.
|
static int |
SocketOptions.SO_BINDADDR
Fetch the local address binding of a socket (this option cannot
be "set" only "gotten", since sockets are bound at creation time,
and so the locally bound address cannot be changed).
|
static int |
SocketOptions.SO_BROADCAST
Sets SO_BROADCAST for a socket.
|
static int |
SocketOptions.SO_KEEPALIVE
When the keepalive option is set for a TCP socket and no data
has been exchanged across the socket in either direction for
2 hours (NOTE: the actual value is implementation dependent),
TCP automatically sends a keepalive probe to the peer.
|
static int |
SocketOptions.SO_LINGER
Specify a linger-on-close timeout.
|
static int |
SocketOptions.SO_OOBINLINE
When the OOBINLINE option is set, any TCP urgent data received on
the socket will be received through the socket input stream.
|
static int |
SocketOptions.SO_RCVBUF
Set a hint the size of the underlying buffers used by the
platform for incoming network I/O.
|
static int |
SocketOptions.SO_REUSEADDR
Sets SO_REUSEADDR for a socket.
|
static int |
SocketOptions.SO_SNDBUF
Set a hint the size of the underlying buffers used by the
platform for outgoing network I/O.
|
static int |
SocketOptions.SO_TIMEOUT
Set a timeout on blocking Socket operations:
|
static int |
SocketOptions.TCP_NODELAY
Disable Nagle's algorithm for this connection.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0