GLib.PollFD - Structures - GLib 2.0 (original) (raw)

Fields

Name Type Access Description
events int r/w a bitwise combination from GLib.IOCondition, specifying which events should be polled for. Typically for reading from a file descriptor you would use GLib.IOCondition.IN | GLib.IOCondition.HUP GLib.IOCondition.ERR, and for writing you would use GLib.IOCondition.OUT GLib.IOCondition.ERR.
fd int r/w the file descriptor to poll (or a HANDLE on Win32)
revents int r/w a bitwise combination of flags from GLib.IOCondition, returned from the poll() function to indicate which events occurred.

Methods

None

Details

class GLib.PollFD(fd, events)

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