Struct
GLibPollFD
since: 2.0
Description
struct GPollFD {
gint fd;
gushort events;
gushort revents;
}
Represents a file descriptor, which events to poll for, and which events occurred.
Structure members
fdThe file descriptor to poll (or a HANDLE on Win32)
eventsA bitwise combination from
GIOCondition, specifying which events should be polled for. Typically for reading from a file descriptor you would useG_IO_IN|G_IO_HUP|G_IO_ERR, and for writing you would useG_IO_OUT|G_IO_ERR.reventsA bitwise combination of flags from
GIOCondition, returned from thepoll()function to indicate which events occurred.
Available since: 2.0