Class Poll.PollFd

    • Constructor Detail

      • PollFd

        public PollFd()
    • Method Detail

      • sizeof

        @SizeOf
        public static int sizeof()
        Get the real size of struct pollfd natively.
        Returns:
        the native value sizeof(struct pollfd).
      • alignof

        @AlignOf
        public static int alignof()
      • events

        public short events()
        The input event flags. POSIX: structure pollfd.
        Returns:
        the native value of events;
      • events

        public void events​(short events)
        The input event flags. POSIX: structure pollfd.
        Parameters:
        events - the value of events to be set natively.
      • fd

        public int fd()
        The file descriptor being polled. POSIX: structure pollfd.
        Returns:
        the native value of fd;
      • fd

        public void fd​(int fd)
        The file descriptor being polled. POSIX: structure pollfd.
        Parameters:
        fd - the value of fd to be set natively.
      • revents

        public short revents()
        The output event flags. POSIX: structure pollfd.
        Returns:
        the native value of revents;
      • revents

        public void revents​(short revents)
        The output event flags. POSIX: structure pollfd.
        Parameters:
        revents - the value of revents to be set natively.