final class BsdSocket extends Socket
Modifier and Type | Field and Description |
---|---|
private static int |
APPLE_SND_LOW_AT_MAX |
(package private) static int |
BSD_SND_LOW_AT_MAX |
private static int |
FREEBSD_SND_LOW_AT_MAX |
private static java.nio.channels.ClosedChannelException |
SENDFILE_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SENDFILE_CONNECTION_RESET_EXCEPTION |
UDS_SUN_PATH_SIZE
Constructor and Description |
---|
BsdSocket(int fd) |
Modifier and Type | Method and Description |
---|---|
(package private) AcceptFilter |
getAcceptFilter() |
private static java.lang.String[] |
getAcceptFilter(int fd) |
(package private) PeerCredentials |
getPeerCredentials() |
private static PeerCredentials |
getPeerCredentials(int fd) |
(package private) int |
getSndLowAt() |
private static int |
getSndLowAt(int fd) |
private static int |
getTcpNoPush(int fd) |
(package private) boolean |
isTcpNoPush() |
static BsdSocket |
newSocketDgram() |
static BsdSocket |
newSocketDomain() |
static BsdSocket |
newSocketStream() |
(package private) long |
sendFile(DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
private static long |
sendFile(int socketFd,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
(package private) void |
setAcceptFilter(AcceptFilter acceptFilter) |
private static void |
setAcceptFilter(int fd,
java.lang.String filterName,
java.lang.String filterArgs) |
(package private) void |
setSndLowAt(int lowAt) |
private static void |
setSndLowAt(int fd,
int lowAt) |
(package private) void |
setTcpNoPush(boolean tcpNoPush) |
private static void |
setTcpNoPush(int fd,
int tcpNoPush) |
accept, bind, connect, finishConnect, getReceiveBufferSize, getSendBufferSize, getSoError, getSoLinger, getTrafficClass, isBroadcast, isInputShutdown, isKeepAlive, isOutputShutdown, isReuseAddress, isReusePort, isShutdown, isTcpNoDelay, listen, localAddress, newSocketDgram0, newSocketDomain0, newSocketStream0, recvFd, recvFrom, recvFromAddress, remoteAddress, sendFd, sendTo, sendToAddress, sendToAddresses, setBroadcast, setKeepAlive, setReceiveBufferSize, setReuseAddress, setReusePort, setSendBufferSize, setSoLinger, setTcpNoDelay, setTrafficClass, shutdown, shutdown, toString
close, equals, from, from, hashCode, intValue, isOpen, pipe, read, readAddress, write, writeAddress, writev, writevAddresses
private static final Errors.NativeIoException SENDFILE_CONNECTION_RESET_EXCEPTION
private static final java.nio.channels.ClosedChannelException SENDFILE_CLOSED_CHANNEL_EXCEPTION
private static final int APPLE_SND_LOW_AT_MAX
private static final int FREEBSD_SND_LOW_AT_MAX
static final int BSD_SND_LOW_AT_MAX
void setAcceptFilter(AcceptFilter acceptFilter) throws java.io.IOException
java.io.IOException
void setTcpNoPush(boolean tcpNoPush) throws java.io.IOException
java.io.IOException
void setSndLowAt(int lowAt) throws java.io.IOException
java.io.IOException
boolean isTcpNoPush() throws java.io.IOException
java.io.IOException
int getSndLowAt() throws java.io.IOException
java.io.IOException
AcceptFilter getAcceptFilter() throws java.io.IOException
java.io.IOException
PeerCredentials getPeerCredentials() throws java.io.IOException
java.io.IOException
long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
public static BsdSocket newSocketStream()
public static BsdSocket newSocketDgram()
public static BsdSocket newSocketDomain()
private static long sendFile(int socketFd, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
private static java.lang.String[] getAcceptFilter(int fd) throws java.io.IOException
java.io.IOException
private static int getTcpNoPush(int fd) throws java.io.IOException
java.io.IOException
private static int getSndLowAt(int fd) throws java.io.IOException
java.io.IOException
private static PeerCredentials getPeerCredentials(int fd) throws java.io.IOException
java.io.IOException
private static void setAcceptFilter(int fd, java.lang.String filterName, java.lang.String filterArgs) throws java.io.IOException
java.io.IOException
private static void setTcpNoPush(int fd, int tcpNoPush) throws java.io.IOException
java.io.IOException
private static void setSndLowAt(int fd, int lowAt) throws java.io.IOException
java.io.IOException