| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| private static volatile boolean | |
| public static final int | UDS_SUN_PATH_SIZE
Deprecated
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| private static native int | |
| public final void | |
| private static native int | |
| private static native int | |
| public final boolean | |
| private static native int | |
| private static native int | |
| public final void | |
| private static native int | |
| public final boolean | |
| private static native int | |
| public int | |
| private static native int | |
| public void | |
| private static native void | |
| private static native void | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public static void | |
| public final boolean | |
| private static native int | |
| public final boolean | |
| private static native boolean | |
| public static boolean | |
| private static native boolean | |
| public final boolean | |
| private static native int | |
| public final boolean | |
| public final boolean | |
| private static native int | |
| public final boolean | |
| private static native int | |
| public final boolean | |
| public final boolean | |
| private static native int | |
| public final void | |
| private static native int | |
| public final InetSocketAddress | |
| private static native byte[] | |
| public final DomainSocketAddress | |
| private static native byte[] | |
| private static native int | |
| public static Socket | |
| protected static int | |
| protected static int | |
| protected static int | |
| private static native int | |
| public static Socket | |
| protected static int | |
| public static Socket | |
| protected static int | |
| private static native int | |
| private static native int | |
| public static Socket | |
| protected static int | |
| protected static int | |
| protected static int | |
| private static native int | |
| public int | |
| private static native int | |
| public int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final DatagramSocketAddress | |
| private static native DatagramSocketAddress | |
| public final DatagramSocketAddress | |
| private static native DatagramSocketAddress | |
| public final DomainDatagramSocketAddress | |
| private static native DomainDatagramSocketAddress | |
| public final DomainDatagramSocketAddress | |
| private static native DomainDatagramSocketAddress | |
| public final InetSocketAddress | |
| private static native byte[] | |
| public final DomainSocketAddress | |
| private static native byte[] | |
| public int | |
| private static native int | |
| public int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final int | |
| public final int | |
| private static native int | sendTo(int fd, boolean ipv6, ByteBuffer buf, int pos, int limit, byte[] address, int scopeId, int port, int flags)
|
| public final int | |
| public final int | |
| private static native int | sendToAddress(int fd, boolean ipv6, long memoryAddress, int pos, int limit, byte[] address, int scopeId, int port, int flags)
|
| public final int | |
| private static native int | |
| public final int | |
| public final int | |
| private static native int | sendToAddresses(int fd, boolean ipv6, long memoryAddress, int length, byte[] address, int scopeId, int port, int flags)
|
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final void | |
| private static native void | |
| public void | |
| private static native void | |
| public final void | |
| private static native void | |
| public void | |
| private static native void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public final void | |
| private static native void | |
| public static boolean | |
| public final void | |
| public final void | |
| private static native int | |
| public String | toString()
Returns a string representation of the object.
|
| private boolean | |
| protected static boolean | useIpv6(Socket socket, InetAddress address)
Returns |
| ipv6 | back to summary |
|---|---|
| protected final boolean ipv6 | |
| isIpv6Preferred | back to summary |
|---|---|
| private static volatile boolean isIpv6Preferred | |
| UDS_SUN_PATH_SIZE | back to summary |
|---|---|
| public static final int UDS_SUN_PATH_SIZE
Deprecated
| |
| Socket | back to summary |
|---|---|
| public Socket(int fd) | |
| accept | back to summary |
|---|---|
| public final int accept(byte[] addr) throws IOException | |
| accept | back to summary |
|---|---|
| private static native int accept(int fd, byte[] addr) | |
| bind | back to summary |
|---|---|
| public final void bind(SocketAddress socketAddress) throws IOException | |
| bind | back to summary |
|---|---|
| private static native int bind(int fd, boolean ipv6, byte[] address, int scopeId, int port) | |
| bindDomainSocket | back to summary |
|---|---|
| private static native int bindDomainSocket(int fd, byte[] path) | |
| connect | back to summary |
|---|---|
| public final boolean connect(SocketAddress socketAddress) throws IOException | |
| connect | back to summary |
|---|---|
| private static native int connect(int fd, boolean ipv6, byte[] address, int scopeId, int port) | |
| connectDomainSocket | back to summary |
|---|---|
| private static native int connectDomainSocket(int fd, byte[] path) | |
| disconnect | back to summary |
|---|---|
| public final void disconnect() throws IOException | |
| disconnect | back to summary |
|---|---|
| private static native int disconnect(int fd, boolean ipv6) | |
| finishConnect | back to summary |
|---|---|
| public final boolean finishConnect() throws IOException | |
| finishConnect | back to summary |
|---|---|
| private static native int finishConnect(int fd) | |
| getIntOpt | back to summary |
|---|---|
| public int getIntOpt(int level, int optname) throws IOException | |
| getIntOpt | back to summary |
|---|---|
| private static native int getIntOpt(int fd, int level, int optname) throws IOException | |
| getRawOpt | back to summary |
|---|---|
| public void getRawOpt(int level, int optname, ByteBuffer out) throws IOException | |
| getRawOptAddress | back to summary |
|---|---|
| private static native void getRawOptAddress(int fd, int level, int optname, long outMemoryAddress, int length) throws IOException | |
| getRawOptArray | back to summary |
|---|---|
| private static native void getRawOptArray(int fd, int level, int optname, byte[] out, int offset, int length) throws IOException | |
| getReceiveBufferSize | back to summary |
|---|---|
| public final int getReceiveBufferSize() throws IOException | |
| getReceiveBufferSize | back to summary |
|---|---|
| private static native int getReceiveBufferSize(int fd) throws IOException | |
| getSendBufferSize | back to summary |
|---|---|
| public final int getSendBufferSize() throws IOException | |
| getSendBufferSize | back to summary |
|---|---|
| private static native int getSendBufferSize(int fd) throws IOException | |
| getSoError | back to summary |
|---|---|
| public final int getSoError() throws IOException | |
| getSoError | back to summary |
|---|---|
| private static native int getSoError(int fd) throws IOException | |
| getSoLinger | back to summary |
|---|---|
| public final int getSoLinger() throws IOException | |
| getSoLinger | back to summary |
|---|---|
| private static native int getSoLinger(int fd) throws IOException | |
| getTrafficClass | back to summary |
|---|---|
| public final int getTrafficClass() throws IOException | |
| getTrafficClass | back to summary |
|---|---|
| private static native int getTrafficClass(int fd, boolean ipv6) throws IOException | |
| initialize | back to summary |
|---|---|
| public static void initialize() | |
| isBroadcast | back to summary |
|---|---|
| public final boolean isBroadcast() throws IOException | |
| isBroadcast | back to summary |
|---|---|
| private static native int isBroadcast(int fd) throws IOException | |
| isInputShutdown | back to summary |
|---|---|
| public final boolean isInputShutdown() | |
| isIPv6 | back to summary |
|---|---|
| private static native boolean isIPv6(int fd) | |
| isIPv6Preferred | back to summary |
|---|---|
| public static boolean isIPv6Preferred() | |
| isIPv6Preferred0 | back to summary |
|---|---|
| private static native boolean isIPv6Preferred0(boolean ipv4Preferred) | |
| isKeepAlive | back to summary |
|---|---|
| public final boolean isKeepAlive() throws IOException | |
| isKeepAlive | back to summary |
|---|---|
| private static native int isKeepAlive(int fd) throws IOException | |
| isOutputShutdown | back to summary |
|---|---|
| public final boolean isOutputShutdown() | |
| isReuseAddress | back to summary |
|---|---|
| public final boolean isReuseAddress() throws IOException | |
| isReuseAddress | back to summary |
|---|---|
| private static native int isReuseAddress(int fd) throws IOException | |
| isReusePort | back to summary |
|---|---|
| public final boolean isReusePort() throws IOException | |
| isReusePort | back to summary |
|---|---|
| private static native int isReusePort(int fd) throws IOException | |
| isShutdown | back to summary |
|---|---|
| public final boolean isShutdown() | |
| isTcpNoDelay | back to summary |
|---|---|
| public final boolean isTcpNoDelay() throws IOException | |
| isTcpNoDelay | back to summary |
|---|---|
| private static native int isTcpNoDelay(int fd) throws IOException | |
| listen | back to summary |
|---|---|
| public final void listen(int backlog) throws IOException | |
| listen | back to summary |
|---|---|
| private static native int listen(int fd, int backlog) | |
| localAddress | back to summary |
|---|---|
| public final InetSocketAddress localAddress() | |
| localAddress | back to summary |
|---|---|
| private static native byte[] localAddress(int fd) | |
| localDomainSocketAddress | back to summary |
|---|---|
| public final DomainSocketAddress localDomainSocketAddress() | |
| localDomainSocketAddress | back to summary |
|---|---|
| private static native byte[] localDomainSocketAddress(int fd) | |
| msgFastopen | back to summary |
|---|---|
| private static native int msgFastopen() | |
| newSocketDgram | back to summary |
|---|---|
| public static Socket newSocketDgram() | |
| newSocketDgram0 | back to summary |
|---|---|
| protected static int newSocketDgram0() | |
| newSocketDgram0 | back to summary |
|---|---|
| protected static int newSocketDgram0(InternetProtocolFamily family) | |
| newSocketDgram0 | back to summary |
|---|---|
| protected static int newSocketDgram0(boolean ipv6) | |
| newSocketDgramFd | back to summary |
|---|---|
| private static native int newSocketDgramFd(boolean ipv6) | |
| newSocketDomain | back to summary |
|---|---|
| public static Socket newSocketDomain() | |
| newSocketDomain0 | back to summary |
|---|---|
| protected static int newSocketDomain0() | |
| newSocketDomainDgram | back to summary |
|---|---|
| public static Socket newSocketDomainDgram() | |
| newSocketDomainDgram0 | back to summary |
|---|---|
| protected static int newSocketDomainDgram0() | |
| newSocketDomainDgramFd | back to summary |
|---|---|
| private static native int newSocketDomainDgramFd() | |
| newSocketDomainFd | back to summary |
|---|---|
| private static native int newSocketDomainFd() | |
| newSocketStream | back to summary |
|---|---|
| public static Socket newSocketStream() | |
| newSocketStream0 | back to summary |
|---|---|
| protected static int newSocketStream0() | |
| newSocketStream0 | back to summary |
|---|---|
| protected static int newSocketStream0(InternetProtocolFamily protocol) | |
| newSocketStream0 | back to summary |
|---|---|
| protected static int newSocketStream0(boolean ipv6) | |
| newSocketStreamFd | back to summary |
|---|---|
| private static native int newSocketStreamFd(boolean ipv6) | |
| recv | back to summary |
|---|---|
| public int recv(ByteBuffer buf, int pos, int limit) throws IOException | |
| recv | back to summary |
|---|---|
| private static native int recv(int fd, ByteBuffer buf, int pos, int limit) | |
| recvAddress | back to summary |
|---|---|
| public int recvAddress(long address, int pos, int limit) throws IOException | |
| recvAddress | back to summary |
|---|---|
| private static native int recvAddress(int fd, long address, int pos, int limit) | |
| recvFd | back to summary |
|---|---|
| public final int recvFd() throws IOException | |
| recvFd | back to summary |
|---|---|
| private static native int recvFd(int fd) | |
| recvFrom | back to summary |
|---|---|
| public final DatagramSocketAddress recvFrom(ByteBuffer buf, int pos, int limit) throws IOException | |
| recvFrom | back to summary |
|---|---|
| private static native DatagramSocketAddress recvFrom(int fd, ByteBuffer buf, int pos, int limit) throws IOException | |
| recvFromAddress | back to summary |
|---|---|
| public final DatagramSocketAddress recvFromAddress(long memoryAddress, int pos, int limit) throws IOException | |
| recvFromAddress | back to summary |
|---|---|
| private static native DatagramSocketAddress recvFromAddress(int fd, long memoryAddress, int pos, int limit) throws IOException | |
| recvFromAddressDomainSocket | back to summary |
|---|---|
| public final DomainDatagramSocketAddress recvFromAddressDomainSocket(long memoryAddress, int pos, int limit) throws IOException | |
| recvFromAddressDomainSocket | back to summary |
|---|---|
| private static native DomainDatagramSocketAddress recvFromAddressDomainSocket(int fd, long memoryAddress, int pos, int limit) throws IOException | |
| recvFromDomainSocket | back to summary |
|---|---|
| public final DomainDatagramSocketAddress recvFromDomainSocket(ByteBuffer buf, int pos, int limit) throws IOException | |
| recvFromDomainSocket | back to summary |
|---|---|
| private static native DomainDatagramSocketAddress recvFromDomainSocket(int fd, ByteBuffer buf, int pos, int limit) throws IOException | |
| remoteAddress | back to summary |
|---|---|
| public final InetSocketAddress remoteAddress() | |
| remoteAddress | back to summary |
|---|---|
| private static native byte[] remoteAddress(int fd) | |
| remoteDomainSocketAddress | back to summary |
|---|---|
| public final DomainSocketAddress remoteDomainSocketAddress() | |
| remoteDomainSocketAddress | back to summary |
|---|---|
| private static native byte[] remoteDomainSocketAddress(int fd) | |
| send | back to summary |
|---|---|
| public int send(ByteBuffer buf, int pos, int limit) throws IOException | |
| send | back to summary |
|---|---|
| private static native int send(int fd, ByteBuffer buf, int pos, int limit) | |
| sendAddress | back to summary |
|---|---|
| public int sendAddress(long address, int pos, int limit) throws IOException | |
| sendAddress | back to summary |
|---|---|
| private static native int sendAddress(int fd, long address, int pos, int limit) | |
| sendFd | back to summary |
|---|---|
| public final int sendFd(int fdToSend) throws IOException | |
| sendFd | back to summary |
|---|---|
| private static native int sendFd(int socketFd, int fd) | |
| sendTo | back to summary |
|---|---|
| public final int sendTo(ByteBuffer buf, int pos, int limit, InetAddress addr, int port) throws IOException | |
| sendTo | back to summary |
|---|---|
| public final int sendTo(ByteBuffer buf, int pos, int limit, InetAddress addr, int port, boolean fastOpen) throws IOException | |
| sendTo | back to summary |
|---|---|
| private static native int sendTo(int fd, boolean ipv6, ByteBuffer buf, int pos, int limit, byte[] address, int scopeId, int port, int flags) | |
| sendToAddress | back to summary |
|---|---|
| public final int sendToAddress(long memoryAddress, int pos, int limit, InetAddress addr, int port) throws IOException | |
| sendToAddress | back to summary |
|---|---|
| public final int sendToAddress(long memoryAddress, int pos, int limit, InetAddress addr, int port, boolean fastOpen) throws IOException | |
| sendToAddress | back to summary |
|---|---|
| private static native int sendToAddress(int fd, boolean ipv6, long memoryAddress, int pos, int limit, byte[] address, int scopeId, int port, int flags) | |
| sendToAddressDomainSocket | back to summary |
|---|---|
| public final int sendToAddressDomainSocket(long memoryAddress, int pos, int limit, byte[] path) throws IOException | |
| sendToAddressDomainSocket | back to summary |
|---|---|
| private static native int sendToAddressDomainSocket(int fd, long memoryAddress, int pos, int limit, byte[] path) | |
| sendToAddresses | back to summary |
|---|---|
| public final int sendToAddresses(long memoryAddress, int length, InetAddress addr, int port) throws IOException | |
| sendToAddresses | back to summary |
|---|---|
| public final int sendToAddresses(long memoryAddress, int length, InetAddress addr, int port, boolean fastOpen) throws IOException | |
| sendToAddresses | back to summary |
|---|---|
| private static native int sendToAddresses(int fd, boolean ipv6, long memoryAddress, int length, byte[] address, int scopeId, int port, int flags) | |
| sendToAddressesDomainSocket | back to summary |
|---|---|
| public final int sendToAddressesDomainSocket(long memoryAddress, int length, byte[] path) throws IOException | |
| sendToAddressesDomainSocket | back to summary |
|---|---|
| private static native int sendToAddressesDomainSocket(int fd, long memoryAddress, int length, byte[] path) | |
| sendToDomainSocket | back to summary |
|---|---|
| public final int sendToDomainSocket(ByteBuffer buf, int pos, int limit, byte[] path) throws IOException | |
| sendToDomainSocket | back to summary |
|---|---|
| private static native int sendToDomainSocket(int fd, ByteBuffer buf, int pos, int limit, byte[] path) | |
| setBroadcast | back to summary |
|---|---|
| public final void setBroadcast(boolean broadcast) throws IOException | |
| setBroadcast | back to summary |
|---|---|
| private static native void setBroadcast(int fd, int broadcast) throws IOException | |
| setIntOpt | back to summary |
|---|---|
| public void setIntOpt(int level, int optname, int optvalue) throws IOException | |
| setIntOpt | back to summary |
|---|---|
| private static native void setIntOpt(int fd, int level, int optname, int optvalue) throws IOException | |
| setKeepAlive | back to summary |
|---|---|
| public final void setKeepAlive(boolean keepAlive) throws IOException | |
| setKeepAlive | back to summary |
|---|---|
| private static native void setKeepAlive(int fd, int keepAlive) throws IOException | |
| setRawOpt | back to summary |
|---|---|
| public void setRawOpt(int level, int optname, ByteBuffer optvalue) throws IOException | |
| setRawOptAddress | back to summary |
|---|---|
| private static native void setRawOptAddress(int fd, int level, int optname, long optvalueMemoryAddress, int length) throws IOException | |
| setRawOptArray | back to summary |
|---|---|
| private static native void setRawOptArray(int fd, int level, int optname, byte[] optvalue, int offset, int length) throws IOException | |
| setReceiveBufferSize | back to summary |
|---|---|
| public final void setReceiveBufferSize(int receiveBufferSize) throws IOException | |
| setReceiveBufferSize | back to summary |
|---|---|
| private static native void setReceiveBufferSize(int fd, int receiveBufferSize) throws IOException | |
| setReuseAddress | back to summary |
|---|---|
| public final void setReuseAddress(boolean reuseAddress) throws IOException | |
| setReuseAddress | back to summary |
|---|---|
| private static native void setReuseAddress(int fd, int reuseAddress) throws IOException | |
| setReusePort | back to summary |
|---|---|
| public final void setReusePort(boolean reusePort) throws IOException | |
| setReusePort | back to summary |
|---|---|
| private static native void setReusePort(int fd, int reuseAddress) throws IOException | |
| setSendBufferSize | back to summary |
|---|---|
| public final void setSendBufferSize(int sendBufferSize) throws IOException | |
| setSendBufferSize | back to summary |
|---|---|
| private static native void setSendBufferSize(int fd, int sendBufferSize) throws IOException | |
| setSoLinger | back to summary |
|---|---|
| public final void setSoLinger(int soLinger) throws IOException | |
| setSoLinger | back to summary |
|---|---|
| private static native void setSoLinger(int fd, int soLinger) throws IOException | |
| setTcpNoDelay | back to summary |
|---|---|
| public final void setTcpNoDelay(boolean tcpNoDelay) throws IOException | |
| setTcpNoDelay | back to summary |
|---|---|
| private static native void setTcpNoDelay(int fd, int tcpNoDelay) throws IOException | |
| setTrafficClass | back to summary |
|---|---|
| public final void setTrafficClass(int trafficClass) throws IOException | |
| setTrafficClass | back to summary |
|---|---|
| private static native void setTrafficClass(int fd, boolean ipv6, int trafficClass) throws IOException | |
| shouldUseIpv6 | back to summary |
|---|---|
| public static boolean shouldUseIpv6(InternetProtocolFamily family) | |
| shutdown | back to summary |
|---|---|
| public final void shutdown() throws IOException | |
| shutdown | back to summary |
|---|---|
| public final void shutdown(boolean read, boolean write) throws IOException | |
| shutdown | back to summary |
|---|---|
| private static native int shutdown(int fd, boolean read, boolean write) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| useIpv6 | back to summary |
|---|---|
| private boolean useIpv6(InetAddress address) Returns | |
| useIpv6 | back to summary |
|---|---|
| protected static boolean useIpv6(Socket socket, InetAddress address) Returns | |