| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv static final int | |
| private static final int | |
| private static final int | UNSPECIFIED_SOURCE_INTERFACE
The `endpoints` structure passed to `connectx(2)` has an optional "source interface" field, which is the index of the network interface to use. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: The number of bytes copied to the kernel-side socket buffer, or the number of bytes sent to the destination. This number is negative if connecting is left in an in-progress state, or positive if the connection was immediately established.the source address we are connecting from. source, InetSocketAddress the destination address we are connecting to. destination, IovArray the data to copy to the kernel-side socket buffer. data, boolean if tcpFastOpen)true, set the flags needed to enable TCP FastOpen connecting.Establish a connection to the given destination address, and send the given data to it Note This method relies on the |
| private static native int | Returns: If successful, zero or positive number of bytes transfered, otherwise negative errno.
|
| pack-priv AcceptFilter | |
| private static native String[] | |
| pack-priv PeerCredentials | |
| private static native PeerCredentials | |
| pack-priv int | |
| private static native int | |
| private static native int | |
| public boolean | |
| private static native int | |
| pack-priv boolean | |
| public static BsdSocket | |
| public static BsdSocket | |
| public static BsdSocket | |
| public static BsdSocket | |
| public static BsdSocket | |
| public static BsdSocket | |
| pack-priv long | |
| private static native long | |
| pack-priv void | |
| private static native void | |
| pack-priv void | |
| private static native void | |
| public void | |
| private static native void | |
| pack-priv void | |
| private static native void |
| APPLE_SND_LOW_AT_MAX | back to summary |
|---|---|
| private static final int APPLE_SND_LOW_AT_MAX | |
| BSD_SND_LOW_AT_MAX | back to summary |
|---|---|
| pack-priv static final int BSD_SND_LOW_AT_MAX | |
| FREEBSD_SND_LOW_AT_MAX | back to summary |
|---|---|
| private static final int FREEBSD_SND_LOW_AT_MAX | |
| UNSPECIFIED_SOURCE_INTERFACE | back to summary |
|---|---|
| private static final int UNSPECIFIED_SOURCE_INTERFACE The `endpoints` structure passed to `connectx(2)` has an optional "source interface" field, which is the index of the network interface to use. According to `if_nametoindex(3)`, the value 0 is used when no interface is specified. | |
| BsdSocket | back to summary |
|---|---|
| pack-priv BsdSocket(int fd) | |
| connectx | back to summary |
|---|---|
| pack-priv int connectx(InetSocketAddress source, InetSocketAddress destination, IovArray data, boolean tcpFastOpen) throws IOException Establish a connection to the given destination address, and send the given data to it Note This method relies on the
| |
| connectx | back to summary |
|---|---|
private static native int connectx(int socketFd, int sourceInterface, boolean sourceIPv6, byte[] sourceAddress, int sourceScopeId, int sourcePort, boolean destinationIPv6, byte[] destinationAddress, int destinationScopeId, int destinationPort, int flags, long iovAddress, int iovCount, int iovDataLength)
| |
| getAcceptFilter | back to summary |
|---|---|
| pack-priv AcceptFilter getAcceptFilter() throws IOException | |
| getAcceptFilter | back to summary |
|---|---|
| private static native String[] getAcceptFilter(int fd) throws IOException | |
| getPeerCredentials | back to summary |
|---|---|
| pack-priv PeerCredentials getPeerCredentials() throws IOException | |
| getPeerCredentials | back to summary |
|---|---|
| private static native PeerCredentials getPeerCredentials(int fd) throws IOException | |
| getSndLowAt | back to summary |
|---|---|
| pack-priv int getSndLowAt() throws IOException | |
| getSndLowAt | back to summary |
|---|---|
| private static native int getSndLowAt(int fd) throws IOException | |
| getTcpNoPush | back to summary |
|---|---|
| private static native int getTcpNoPush(int fd) throws IOException | |
| isTcpFastOpen | back to summary |
|---|---|
| public boolean isTcpFastOpen() throws IOException | |
| isTcpFastOpen | back to summary |
|---|---|
| private static native int isTcpFastOpen(int fd) throws IOException | |
| isTcpNoPush | back to summary |
|---|---|
| pack-priv boolean isTcpNoPush() throws IOException | |
| newSocketDgram | back to summary |
|---|---|
| public static BsdSocket newSocketDgram() | |
| newSocketDgram | back to summary |
|---|---|
| public static BsdSocket newSocketDgram(InternetProtocolFamily protocol) | |
| newSocketDomain | back to summary |
|---|---|
| public static BsdSocket newSocketDomain() | |
| newSocketDomainDgram | back to summary |
|---|---|
| public static BsdSocket newSocketDomainDgram() | |
| newSocketStream | back to summary |
|---|---|
| public static BsdSocket newSocketStream() | |
| newSocketStream | back to summary |
|---|---|
| public static BsdSocket newSocketStream(InternetProtocolFamily protocol) | |
| sendFile | back to summary |
|---|---|
| pack-priv long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException | |
| sendFile | back to summary |
|---|---|
| private static native long sendFile(int socketFd, DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException | |
| setAcceptFilter | back to summary |
|---|---|
| pack-priv void setAcceptFilter(AcceptFilter acceptFilter) throws IOException | |
| setAcceptFilter | back to summary |
|---|---|
| private static native void setAcceptFilter(int fd, String filterName, String filterArgs) throws IOException | |
| setSndLowAt | back to summary |
|---|---|
| pack-priv void setSndLowAt(int lowAt) throws IOException | |
| setSndLowAt | back to summary |
|---|---|
| private static native void setSndLowAt(int fd, int lowAt) throws IOException | |
| setTcpFastOpen | back to summary |
|---|---|
| public void setTcpFastOpen(boolean enableTcpFastOpen) throws IOException | |
| setTcpFastOpen | back to summary |
|---|---|
| private static native void setTcpFastOpen(int fd, int enableFastOpen) throws IOException | |
| setTcpNoPush | back to summary |
|---|---|
| pack-priv void setTcpNoPush(boolean tcpNoPush) throws IOException | |
| setTcpNoPush | back to summary |
|---|---|
| private static native void setTcpNoPush(int fd, int tcpNoPush) throws IOException | |