PollFD#

class PollFD(fd, events)#

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

Fields#

class PollFD
events#
A bitwise combination from IOCondition, 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.

fd#

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

revents#
A bitwise combination of flags from IOCondition, returned

from the poll() function to indicate which events occurred.