- java.lang.Object
-
- io.netty5.channel.epoll.Native
-
public final class Native extends Object
Native helper methodsInternal usage only!
Static members which call JNI methods must be defined in
NativeStaticallyReferencedJniMethods
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EPOLLERR
static int
EPOLLET
static int
EPOLLIN
static int
EPOLLOUT
static int
EPOLLRDHUP
static boolean
IS_SUPPORTING_SENDMMSG
static boolean
IS_SUPPORTING_TCP_FASTOPEN
Deprecated.static String
KERNEL_VERSION
static int
TCP_MD5SIG_MAXKEYLEN
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
epollBusyWait(FileDescriptor epollFd, EpollEventArray events)
Non-blocking variant ofepollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int, long)
that will also hint to processor we are in a busy-wait loop.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 void
eventFdWrite(int fd, long value)
static FileDescriptor
newEpollCreate()
static FileDescriptor
newEventFd()
static FileDescriptor
newTimerFd()
static int
offsetofEpollData()
static int
sendmmsg(int fd, io.netty5.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len)
Deprecated.static int
sizeofEpollEvent()
-
-
-
Field Detail
-
EPOLLIN
public static final int EPOLLIN
-
EPOLLOUT
public static final int EPOLLOUT
-
EPOLLRDHUP
public static final int EPOLLRDHUP
-
EPOLLET
public static final int EPOLLET
-
EPOLLERR
public static final int EPOLLERR
-
IS_SUPPORTING_SENDMMSG
public static final boolean IS_SUPPORTING_SENDMMSG
-
IS_SUPPORTING_TCP_FASTOPEN
@Deprecated public static final boolean IS_SUPPORTING_TCP_FASTOPEN
Deprecated.
-
TCP_MD5SIG_MAXKEYLEN
public static final int TCP_MD5SIG_MAXKEYLEN
-
KERNEL_VERSION
public static final String KERNEL_VERSION
-
-
Method Detail
-
newEventFd
public static FileDescriptor newEventFd()
-
newTimerFd
public static FileDescriptor newTimerFd()
-
eventFdWrite
public static void eventFdWrite(int fd, long value)
-
newEpollCreate
public static FileDescriptor newEpollCreate()
-
epollBusyWait
public static int epollBusyWait(FileDescriptor epollFd, EpollEventArray events) throws IOException
Non-blocking variant ofepollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int, long)
that will also hint to processor we are in a busy-wait loop.- Throws:
IOException
-
epollCtlAdd
public static void epollCtlAdd(int efd, int fd, int flags) throws IOException
- Throws:
IOException
-
epollCtlMod
public static void epollCtlMod(int efd, int fd, int flags) throws IOException
- Throws:
IOException
-
epollCtlDel
public static void epollCtlDel(int efd, int fd) throws IOException
- Throws:
IOException
-
sendmmsg
@Deprecated public static int sendmmsg(int fd, io.netty5.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws IOException
Deprecated.- Throws:
IOException
-
sizeofEpollEvent
public static int sizeofEpollEvent()
-
offsetofEpollData
public static int offsetofEpollData()
-
-