Class Native


  • public final class Native
    extends Object
    Native helper methods

    Internal usage only!

    Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods.

    • 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
      • TCP_MD5SIG_MAXKEYLEN

        public static final int TCP_MD5SIG_MAXKEYLEN
      • KERNEL_VERSION

        public static final String KERNEL_VERSION
    • Method Detail

      • newEventFd

        public static io.netty.channel.unix.FileDescriptor newEventFd()
      • newTimerFd

        public static io.netty.channel.unix.FileDescriptor newTimerFd()
      • eventFdWrite

        public static void eventFdWrite​(int fd,
                                        long value)
      • eventFdRead

        public static void eventFdRead​(int fd)
      • newEpollCreate

        public static io.netty.channel.unix.FileDescriptor newEpollCreate()
      • epollWait

        @Deprecated
        public static int epollWait​(io.netty.channel.unix.FileDescriptor epollFd,
                                    EpollEventArray events,
                                    io.netty.channel.unix.FileDescriptor timerFd,
                                    int timeoutSec,
                                    int timeoutNs)
                             throws IOException
        Deprecated.
        this method is no longer supported. This functionality is internal to this package.
        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
      • splice

        public static int splice​(int fd,
                                 long offIn,
                                 int fdOut,
                                 long offOut,
                                 long len)
                          throws IOException
        Throws:
        IOException
      • sendmmsg

        @Deprecated
        public static int sendmmsg​(int fd,
                                   io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
                                   int offset,
                                   int len)
                            throws IOException
        Deprecated.
        Throws:
        IOException
      • sizeofEpollEvent

        public static int sizeofEpollEvent()
      • offsetofEpollData

        public static int offsetofEpollData()