public final class Native
extends java.lang.Object
Internal usage only!
Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods
.
限定符和类型 | 字段和说明 |
---|---|
static int |
EPOLLERR |
static int |
EPOLLET |
static int |
EPOLLIN |
static int |
EPOLLOUT |
static int |
EPOLLRDHUP |
static int |
IOV_MAX |
static boolean |
IS_SUPPORTING_SENDMMSG |
static boolean |
IS_SUPPORTING_TCP_FASTOPEN |
static java.lang.String |
KERNEL_VERSION |
static long |
SSIZE_MAX |
static int |
TCP_MD5SIG_MAXKEYLEN |
static int |
UIO_MAX_IOV |
限定符和类型 | 方法和说明 |
---|---|
static void |
epollCtlAdd(int efd,
int fd,
int flags) |
static void |
epollCtlDel(int efd,
int fd) |
static void |
epollCtlMod(int efd,
int fd,
int flags) |
static int |
epollWait(FileDescriptor epollFd,
io.netty.channel.epoll.EpollEventArray events,
FileDescriptor timerFd,
int timeoutSec,
int timeoutNs) |
static void |
eventFdRead(int fd) |
static void |
eventFdWrite(int fd,
long value) |
static int |
getTcpKeepCnt(int fd) |
static int |
getTcpKeepIdle(int fd) |
static int |
getTcpKeepIntvl(int fd) |
static int |
getTcpNotSentLowAt(int fd) |
static int |
getTcpUserTimeout(int milliseconds) |
static int |
getTrafficClass(int fd) |
static int |
isBroadcast(int fd) |
static int |
isIpFreeBind(int fd) |
static int |
isReuseAddress(int fd) |
static int |
isReusePort(int fd) |
static FileDescriptor |
newEpollCreate() |
static FileDescriptor |
newEventFd() |
static FileDescriptor |
newTimerFd() |
static int |
offsetofEpollData() |
static int |
recvFd(int fd) |
static int |
sendFd(int socketFd,
int fd) |
static long |
sendfile(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
static int |
sendmmsg(int fd,
io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
static void |
setBroadcast(int fd,
int broadcast) |
static void |
setIpFreeBind(int fd,
int freeBind) |
static void |
setReuseAddress(int fd,
int reuseAddress) |
static void |
setReusePort(int fd,
int reuseAddress) |
static void |
setTcpFastopen(int fd,
int tcpFastopenBacklog) |
static void |
setTcpKeepCnt(int fd,
int probes) |
static void |
setTcpKeepIdle(int fd,
int seconds) |
static void |
setTcpKeepIntvl(int fd,
int seconds) |
static void |
setTcpMd5Sig(int fd,
java.net.InetAddress address,
byte[] key) |
static void |
setTcpNotSentLowAt(int fd,
int tcpNotSentLowAt) |
static void |
setTcpUserTimeout(int fd,
int milliseconds) |
static void |
setTrafficClass(int fd,
int tcpNoDelay) |
static int |
sizeofEpollEvent() |
static int |
splice(int fd,
long offIn,
int fdOut,
long offOut,
long len) |
static void |
tcpInfo(int fd,
EpollTcpInfo info) |
public static final int EPOLLIN
public static final int EPOLLOUT
public static final int EPOLLRDHUP
public static final int EPOLLET
public static final int EPOLLERR
public static final int IOV_MAX
public static final int UIO_MAX_IOV
public static final boolean IS_SUPPORTING_SENDMMSG
public static final boolean IS_SUPPORTING_TCP_FASTOPEN
public static final long SSIZE_MAX
public static final int TCP_MD5SIG_MAXKEYLEN
public static final java.lang.String KERNEL_VERSION
public static FileDescriptor newEventFd()
public static FileDescriptor newTimerFd()
public static void eventFdWrite(int fd, long value)
public static void eventFdRead(int fd)
public static FileDescriptor newEpollCreate()
public static int epollWait(FileDescriptor epollFd, io.netty.channel.epoll.EpollEventArray events, FileDescriptor timerFd, int timeoutSec, int timeoutNs) throws java.io.IOException
java.io.IOException
public static void epollCtlAdd(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
public static void epollCtlMod(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
public static void epollCtlDel(int efd, int fd) throws java.io.IOException
java.io.IOException
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws java.io.IOException
java.io.IOException
public static long sendfile(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
public static int sendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws java.io.IOException
java.io.IOException
public static int recvFd(int fd) throws java.io.IOException
java.io.IOException
public static int sendFd(int socketFd, int fd) throws java.io.IOException
java.io.IOException
public static int isReuseAddress(int fd) throws java.io.IOException
java.io.IOException
public static int isReusePort(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpNotSentLowAt(int fd) throws java.io.IOException
java.io.IOException
public static int getTrafficClass(int fd) throws java.io.IOException
java.io.IOException
public static int isBroadcast(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepIdle(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepIntvl(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepCnt(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpUserTimeout(int milliseconds) throws java.io.IOException
java.io.IOException
public static int isIpFreeBind(int fd) throws java.io.IOException
java.io.IOException
public static void setReuseAddress(int fd, int reuseAddress) throws java.io.IOException
java.io.IOException
public static void setReusePort(int fd, int reuseAddress) throws java.io.IOException
java.io.IOException
public static void setTcpFastopen(int fd, int tcpFastopenBacklog) throws java.io.IOException
java.io.IOException
public static void setTcpNotSentLowAt(int fd, int tcpNotSentLowAt) throws java.io.IOException
java.io.IOException
public static void setTrafficClass(int fd, int tcpNoDelay) throws java.io.IOException
java.io.IOException
public static void setBroadcast(int fd, int broadcast) throws java.io.IOException
java.io.IOException
public static void setTcpKeepIdle(int fd, int seconds) throws java.io.IOException
java.io.IOException
public static void setTcpKeepIntvl(int fd, int seconds) throws java.io.IOException
java.io.IOException
public static void setTcpKeepCnt(int fd, int probes) throws java.io.IOException
java.io.IOException
public static void setTcpUserTimeout(int fd, int milliseconds) throws java.io.IOException
java.io.IOException
public static void setIpFreeBind(int fd, int freeBind) throws java.io.IOException
java.io.IOException
public static void tcpInfo(int fd, EpollTcpInfo info) throws java.io.IOException
java.io.IOException
public static void setTcpMd5Sig(int fd, java.net.InetAddress address, byte[] key) throws java.io.IOException
java.io.IOException
public static int sizeofEpollEvent()
public static int offsetofEpollData()