| Modifier and Type | Field and Description |
|---|---|
| private static final InetAddress | |
| private static final InetAddress | |
| private static final boolean | |
| pack-priv static final ExtendedSocketOptions | |
| private static final boolean | |
| private static final InetAddress | |
| private static final InetAddress | |
| private static final boolean | |
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | POLLIN
Event masks for the various poll system calls. |
| public static final short | |
| public static final short | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final LazyConstant | |
| private static final boolean | |
| pack-priv static final ProtocolFamily |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static native int | |
| pack-priv static Inet4Address | anyInet4Address(final NetworkInterface interf)
Returns any IPv4 address of the given network interface, or null if the interface does not have any IPv4 addresses. |
| pack-priv static InetAddress | anyLocalAddress(ProtocolFamily family)
Returns the wildcard address that corresponds to the given protocol family. |
| pack-priv static InetSocketAddress | |
| pack-priv static native int | |
| public static void | |
| pack-priv static void | |
| private static native void | |
| pack-priv static int | |
| pack-priv static int | |
| private static native int | |
| pack-priv static native int | |
| pack-priv static boolean | |
| private static native boolean | |
| pack-priv static boolean | canJoin6WithIPv4Group()
Tells whether |
| private static native boolean | |
| pack-priv static boolean | canUseIPv6OptionsWithIPv4LocalAddress()
Tells whether IPV6_XXX socket options should be used on an IPv6 socket that is bound to an IPv4 address. |
| private static native boolean | |
| public static InetSocketAddress | |
| pack-priv static InetSocketAddress | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static int | |
| private static native int | |
| pack-priv static native boolean | |
| pack-priv static void | |
| pack-priv static void | drop6(FileDescriptor fd, byte[] group, int index, byte[] source)
Drop membership of IPv6 multicast group |
| pack-priv static native int | |
| pack-priv static native int | |
| private static native int | |
| pack-priv static Object | |
| pack-priv static Object | |
| pack-priv static int | |
| pack-priv static InetAddress | |
| pack-priv static InetAddress | |
| pack-priv static byte[] | |
| pack-priv static InetAddress | |
| private static native void | |
| private static native int | |
| private static boolean | |
| pack-priv static boolean | |
| private static native boolean | |
| pack-priv static boolean | |
| private static native boolean | |
| pack-priv static int | |
| pack-priv static int | |
| private static native int | |
| private static native int | |
| pack-priv static native void | |
| public static InetSocketAddress | |
| private static native InetAddress | |
| private static native int | |
| private static SocketException | |
| pack-priv static native int | Returns: the polled events or 0 if no events are polledthe timeout to wait; 0 to not wait, -1 to wait indefinitely timeout)Polls a file descriptor for events. |
| public static native boolean | Returns: true if connectedthe timeout to wait; 0 to not wait, -1 to wait indefinitely timeout)Polls a connecting socket to test if the connection has been established. |
| pack-priv static boolean | Returns: true if connectedPerforms a non-blocking poll of a connecting socket to test if the connection has been established. |
| pack-priv static native short | |
| pack-priv static native short | |
| pack-priv static native short | |
| pack-priv static native short | |
| pack-priv static int | Returns: the polled events or 0 if no events are polledPerforms a non-blocking poll of a file descriptor. |
| pack-priv static native short | |
| pack-priv static native short | |
| pack-priv static InetSocketAddress | |
| private static native InetAddress | |
| private static native int | |
| pack-priv static native int | |
| pack-priv static FileDescriptor | |
| pack-priv static FileDescriptor | |
| pack-priv static native void | |
| pack-priv static native void | |
| private static native void | setIntOption0(FileDescriptor fd, boolean mayNeedConversion, int level, int opt, int arg, boolean isIPv6)
|
| pack-priv static <T> void | setIpSocketOption(FileDescriptor fd, ProtocolFamily family, SocketOption<T> opt, T value)
Sets a IPPROTO_IPV6/IPPROTO level socket. |
| pack-priv static void | |
| pack-priv static void | |
| private static AssertionError | |
| pack-priv static boolean | shouldSetBothIPv4AndIPv6Options()
Tells whether both IPV6_XXX and IP_XXX socket options should be set on IPv6 sockets. |
| private static native boolean | |
| pack-priv static boolean | shouldShutdownWriteBeforeClose()
Tells whether a TCP connection should be shutdown for writing before closing. |
| private static native boolean | |
| pack-priv static native void | |
| pack-priv static FileDescriptor | |
| pack-priv static FileDescriptor | |
| private static native int | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static boolean |
| ANY_LOCAL_INET4ADDRESS | back to summary |
|---|---|
| private static final InetAddress ANY_LOCAL_INET4ADDRESS | |
| ANY_LOCAL_INET6ADDRESS | back to summary |
|---|---|
| private static final InetAddress ANY_LOCAL_INET6ADDRESS | |
| EXCLUSIVE_BIND | back to summary |
|---|---|
| private static final boolean EXCLUSIVE_BIND | |
| EXTENDED_OPTIONS | back to summary |
|---|---|
| pack-priv static final ExtendedSocketOptions EXTENDED_OPTIONS | |
| FAST_LOOPBACK | back to summary |
|---|---|
| private static final boolean FAST_LOOPBACK | |
| INET4_LOOPBACK_ADDRESS | back to summary |
|---|---|
| private static final InetAddress INET4_LOOPBACK_ADDRESS | |
| INET6_LOOPBACK_ADDRESS | back to summary |
|---|---|
| private static final InetAddress INET6_LOOPBACK_ADDRESS | |
| IPV6_AVAILABLE | back to summary |
|---|---|
| private static final boolean IPV6_AVAILABLE | |
| POLLCONN | back to summary |
|---|---|
| public static final short POLLCONN | |
| POLLERR | back to summary |
|---|---|
| public static final short POLLERR | |
| POLLHUP | back to summary |
|---|---|
| public static final short POLLHUP | |
| POLLIN | back to summary |
|---|---|
| public static final short POLLIN Event masks for the various poll system calls. They will be set platform dependent in the static initializer below. | |
| POLLNVAL | back to summary |
|---|---|
| public static final short POLLNVAL | |
| POLLOUT | back to summary |
|---|---|
| public static final short POLLOUT | |
| SHUT_RD | back to summary |
|---|---|
| public static final int SHUT_RD | |
| SHUT_RDWR | back to summary |
|---|---|
| public static final int SHUT_RDWR | |
| SHUT_WR | back to summary |
|---|---|
| public static final int SHUT_WR | |
| SHUTDOWN_WRITE_BEFORE_CLOSE | back to summary |
|---|---|
| private static final LazyConstant<Boolean> SHUTDOWN_WRITE_BEFORE_CLOSE | |
| SO_REUSEPORT_AVAILABLE | back to summary |
|---|---|
| private static final boolean SO_REUSEPORT_AVAILABLE | |
| UNSPEC | back to summary |
|---|---|
| pack-priv static final ProtocolFamily UNSPEC | |
| Net | back to summary |
|---|---|
| private Net() | |
| accept | back to summary |
|---|---|
| public static native int accept(FileDescriptor fd, FileDescriptor newfd, InetSocketAddress[] isaa) throws IOException | |
| anyInet4Address | back to summary |
|---|---|
| pack-priv static Inet4Address anyInet4Address(final NetworkInterface interf) Returns any IPv4 address of the given network interface, or null if the interface does not have any IPv4 addresses. | |
| anyLocalAddress | back to summary |
|---|---|
| pack-priv static InetAddress anyLocalAddress(ProtocolFamily family) Returns the wildcard address that corresponds to the given protocol family.
| |
| asInetSocketAddress | back to summary |
|---|---|
| pack-priv static InetSocketAddress asInetSocketAddress(SocketAddress sa) | |
| available | back to summary |
|---|---|
| pack-priv static native int available(FileDescriptor fd) throws IOException Return the number of bytes in the socket input buffer. | |
| bind | back to summary |
|---|---|
| public static void bind(FileDescriptor fd, InetAddress addr, int port) throws IOException | |
| bind | back to summary |
|---|---|
| pack-priv static void bind(ProtocolFamily family, FileDescriptor fd, InetAddress addr, int port) throws IOException | |
| bind0 | back to summary |
|---|---|
| private static native void bind0(FileDescriptor fd, boolean preferIPv6, boolean useExclBind, InetAddress addr, int port) throws IOException | |
| block4 | back to summary |
|---|---|
| pack-priv static int block4(FileDescriptor fd, int group, int interf, int source) throws IOException Block IPv4 source | |
| block6 | back to summary |
|---|---|
| pack-priv static int block6(FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException Block IPv6 source | |
| blockOrUnblock4 | back to summary |
|---|---|
| private static native int blockOrUnblock4(boolean block, FileDescriptor fd, int group, int interf, int source) throws IOException | |
| blockOrUnblock6 | back to summary |
|---|---|
| pack-priv static native int blockOrUnblock6(boolean block, FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException | |
| canIPv6SocketJoinIPv4Group | back to summary |
|---|---|
| pack-priv static boolean canIPv6SocketJoinIPv4Group() Tells whether IPv6 sockets can join IPv4 multicast groups | |
| canIPv6SocketJoinIPv4Group0 | back to summary |
|---|---|
| private static native boolean canIPv6SocketJoinIPv4Group0() | |
| canJoin6WithIPv4Group | back to summary |
|---|---|
| pack-priv static boolean canJoin6WithIPv4Group() Tells whether | |
| canJoin6WithIPv4Group0 | back to summary |
|---|---|
| private static native boolean canJoin6WithIPv4Group0() | |
| canUseIPv6OptionsWithIPv4LocalAddress | back to summary |
|---|---|
| pack-priv static boolean canUseIPv6OptionsWithIPv4LocalAddress() Tells whether IPV6_XXX socket options should be used on an IPv6 socket that is bound to an IPv4 address. | |
| canUseIPv6OptionsWithIPv4LocalAddress0 | back to summary |
|---|---|
| private static native boolean canUseIPv6OptionsWithIPv4LocalAddress0() | |
| checkAddress | back to summary |
|---|---|
| public static InetSocketAddress checkAddress(SocketAddress sa) | |
| checkAddress | back to summary |
|---|---|
| pack-priv static InetSocketAddress checkAddress(SocketAddress sa, ProtocolFamily family) | |
| connect | back to summary |
|---|---|
| pack-priv static int connect(FileDescriptor fd, InetAddress remote, int remotePort) throws IOException | |
| connect | back to summary |
|---|---|
| pack-priv static int connect(ProtocolFamily family, FileDescriptor fd, InetAddress remote, int remotePort) throws IOException | |
| connect | back to summary |
|---|---|
| pack-priv static int connect(ProtocolFamily family, FileDescriptor fd, SocketAddress remote) throws IOException | |
| connect0 | back to summary |
|---|---|
| private static native int connect0(boolean preferIPv6, FileDescriptor fd, InetAddress remote, int remotePort) throws IOException | |
| discardOOB | back to summary |
|---|---|
| pack-priv static native boolean discardOOB(FileDescriptor fd) throws IOException Read and discard urgent data (MSG_OOB) on the socket. | |
| drop4 | back to summary |
|---|---|
| pack-priv static void drop4(FileDescriptor fd, int group, int interf, int source) throws IOException Drop membership of IPv4 multicast group | |
| drop6 | back to summary |
|---|---|
| pack-priv static void drop6(FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException Drop membership of IPv6 multicast group | |
| getInterface4 | back to summary |
|---|---|
| pack-priv static native int getInterface4(FileDescriptor fd) throws IOException | |
| getInterface6 | back to summary |
|---|---|
| pack-priv static native int getInterface6(FileDescriptor fd) throws IOException | |
| getIntOption0 | back to summary |
|---|---|
| private static native int getIntOption0(FileDescriptor fd, boolean mayNeedConversion, int level, int opt) throws IOException | |
| getSocketOption | back to summary |
|---|---|
| pack-priv static Object getSocketOption(FileDescriptor fd, SocketOption<?> name) throws IOException | |
| getSocketOption | back to summary |
|---|---|
| pack-priv static Object getSocketOption(FileDescriptor fd, ProtocolFamily family, SocketOption<?> name) throws IOException | |
| inet4AsInt | back to summary |
|---|---|
| pack-priv static int inet4AsInt(InetAddress ia) Returns an IPv4 address as an int. | |
| inet4FromInt | back to summary |
|---|---|
| pack-priv static InetAddress inet4FromInt(int address) Returns an InetAddress from the given IPv4 address represented as an int. | |
| inet4LoopbackAddress | back to summary |
|---|---|
| pack-priv static InetAddress inet4LoopbackAddress() | |
| inet6AsByteArray | back to summary |
|---|---|
| pack-priv static byte[] inet6AsByteArray(InetAddress ia) Returns an IPv6 address as a byte array | |
| inet6LoopbackAddress | back to summary |
|---|---|
| pack-priv static InetAddress inet6LoopbackAddress() | |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() | |
| isExclusiveBindAvailable | back to summary |
|---|---|
| private static native int isExclusiveBindAvailable() | |
| isFastTcpLoopbackRequested | back to summary |
|---|---|
| private static boolean isFastTcpLoopbackRequested() | |
| isIPv6Available | back to summary |
|---|---|
| pack-priv static boolean isIPv6Available() Tells whether dual-IPv4/IPv6 sockets should be used. | |
| isIPv6Available0 | back to summary |
|---|---|
| private static native boolean isIPv6Available0() | |
| isReusePortAvailable | back to summary |
|---|---|
| pack-priv static boolean isReusePortAvailable() Tells whether SO_REUSEPORT is supported. | |
| isReusePortAvailable0 | back to summary |
|---|---|
| private static native boolean isReusePortAvailable0() | |
| join4 | back to summary |
|---|---|
| pack-priv static int join4(FileDescriptor fd, int group, int interf, int source) throws IOException Join IPv4 multicast group | |
| join6 | back to summary |
|---|---|
| pack-priv static int join6(FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException Join IPv6 multicast group | |
| joinOrDrop4 | back to summary |
|---|---|
| private static native int joinOrDrop4(boolean join, FileDescriptor fd, int group, int interf, int source) throws IOException | |
| joinOrDrop6 | back to summary |
|---|---|
| private static native int joinOrDrop6(boolean join, FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException | |
| listen | back to summary |
|---|---|
| pack-priv static native void listen(FileDescriptor fd, int backlog) throws IOException | |
| localAddress | back to summary |
|---|---|
| public static InetSocketAddress localAddress(FileDescriptor fd) throws IOException | |
| localInetAddress | back to summary |
|---|---|
| private static native InetAddress localInetAddress(FileDescriptor fd) throws IOException | |
| localPort | back to summary |
|---|---|
| private static native int localPort(FileDescriptor fd) throws IOException | |
| newSocketException | back to summary |
|---|---|
| private static SocketException newSocketException(String msg) | |
| poll | back to summary |
|---|---|
| pack-priv static native int poll(FileDescriptor fd, int events, long timeout) throws IOException Polls a file descriptor for events.
| |
| pollConnect | back to summary |
|---|---|
| public static native boolean pollConnect(FileDescriptor fd, long timeout) throws IOException Polls a connecting socket to test if the connection has been established. API Note This method is public to allow it to be used by code in jdk.sctp.
| |
| pollConnectNow | back to summary |
|---|---|
| pack-priv static boolean pollConnectNow(FileDescriptor fd) throws IOException Performs a non-blocking poll of a connecting socket to test if the connection has been established.
| |
| pollconnValue | back to summary |
|---|---|
| pack-priv static native short pollconnValue() | |
| pollerrValue | back to summary |
|---|---|
| pack-priv static native short pollerrValue() | |
| pollhupValue | back to summary |
|---|---|
| pack-priv static native short pollhupValue() | |
| pollinValue | back to summary |
|---|---|
| pack-priv static native short pollinValue() | |
| pollNow | back to summary |
|---|---|
| pack-priv static int pollNow(FileDescriptor fd, int events) throws IOException Performs a non-blocking poll of a file descriptor.
| |
| pollnvalValue | back to summary |
|---|---|
| pack-priv static native short pollnvalValue() | |
| polloutValue | back to summary |
|---|---|
| pack-priv static native short polloutValue() | |
| remoteAddress | back to summary |
|---|---|
| pack-priv static InetSocketAddress remoteAddress(FileDescriptor fd) throws IOException | |
| remoteInetAddress | back to summary |
|---|---|
| private static native InetAddress remoteInetAddress(FileDescriptor fd) throws IOException | |
| remotePort | back to summary |
|---|---|
| private static native int remotePort(FileDescriptor fd) throws IOException | |
| sendOOB | back to summary |
|---|---|
| pack-priv static native int sendOOB(FileDescriptor fd, byte data) throws IOException Send one byte of urgent data (MSG_OOB) on the socket. | |
| serverSocket | back to summary |
|---|---|
| pack-priv static FileDescriptor serverSocket() | |
| serverSocket | back to summary |
|---|---|
| pack-priv static FileDescriptor serverSocket(ProtocolFamily family) | |
| setInterface4 | back to summary |
|---|---|
| pack-priv static native void setInterface4(FileDescriptor fd, int interf) throws IOException | |
| setInterface6 | back to summary |
|---|---|
| pack-priv static native void setInterface6(FileDescriptor fd, int index) throws IOException | |
| setIntOption0 | back to summary |
|---|---|
| private static native void setIntOption0(FileDescriptor fd, boolean mayNeedConversion, int level, int opt, int arg, boolean isIPv6) throws IOException | |
| setIpSocketOption | back to summary |
|---|---|
| pack-priv static <T> void setIpSocketOption(FileDescriptor fd, ProtocolFamily family, SocketOption<T> opt, T value) throws IOException Sets a IPPROTO_IPV6/IPPROTO level socket. Some platforms require both IPPROTO_IPV6 and IPPROTO socket options to be set when the socket is IPv6. In that case, the IPPROTO socket option is set on a best effort basis. | |
| setSocketOption | back to summary |
|---|---|
| pack-priv static void setSocketOption(FileDescriptor fd, SocketOption<?> name, Object value) throws IOException | |
| setSocketOption | back to summary |
|---|---|
| pack-priv static void setSocketOption(FileDescriptor fd, ProtocolFamily family, SocketOption<?> name, Object value) throws IOException | |
| shouldNotReachHere | back to summary |
|---|---|
| private static AssertionError shouldNotReachHere() | |
| shouldSetBothIPv4AndIPv6Options | back to summary |
|---|---|
| pack-priv static boolean shouldSetBothIPv4AndIPv6Options() Tells whether both IPV6_XXX and IP_XXX socket options should be set on IPv6 sockets. On some kernels, both IPV6_XXX and IP_XXX socket options need to be set so that the settings are effective for IPv4 connections and datagrams. | |
| shouldSetBothIPv4AndIPv6Options0 | back to summary |
|---|---|
| private static native boolean shouldSetBothIPv4AndIPv6Options0() | |
| shouldShutdownWriteBeforeClose | back to summary |
|---|---|
| pack-priv static boolean shouldShutdownWriteBeforeClose() Tells whether a TCP connection should be shutdown for writing before closing. | |
| shouldShutdownWriteBeforeClose0 | back to summary |
|---|---|
| private static native boolean shouldShutdownWriteBeforeClose0() | |
| shutdown | back to summary |
|---|---|
| pack-priv static native void shutdown(FileDescriptor fd, int how) throws IOException | |
| socket | back to summary |
|---|---|
| pack-priv static FileDescriptor socket() throws IOException | |
| socket | back to summary |
|---|---|
| pack-priv static FileDescriptor socket(ProtocolFamily family, boolean stream) throws IOException | |
| socket0 | back to summary |
|---|---|
| private static native int socket0(boolean preferIPv6, boolean stream, boolean reuse, boolean fastLoopback) | |
| translateException | back to summary |
|---|---|
| pack-priv static void translateException(Exception x) throws IOException | |
| translateToSocketException | back to summary |
|---|---|
| pack-priv static void translateToSocketException(Exception x) throws SocketException | |
| unblock4 | back to summary |
|---|---|
| pack-priv static void unblock4(FileDescriptor fd, int group, int interf, int source) throws IOException Unblock IPv4 source | |
| unblock6 | back to summary |
|---|---|
| pack-priv static void unblock6(FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException Unblock IPv6 source | |
| useExclusiveBind | back to summary |
|---|---|
| pack-priv static boolean useExclusiveBind() Returns true if exclusive binding is on | |