1.21 <GPollFD>

Structure: <GPollFD>

Represents a file descriptor, which events to poll for, and which events occurred.

Fields

fd

the file descriptor to poll (or a HANDLE on Win32)

events

a bitwise combination from <GIOCondition>, specifying which events should be polled for. Typically for reading from a file descriptor you would use in | hup | err, and for writing you would use out | err.

revents

a bitwise combination of flags from <GIOCondition>, returned from the poll() function to indicate which events occurred.