selectors.SelectSelector

class selectors.SelectSelector select.select()-based selector.

selectors.SelectorKey.events

events Events that must be waited for on this file object.

selectors.SelectorKey

class selectors.SelectorKey A SelectorKey is a namedtuple used to associate a file object to its underlying file decriptor, selected event mask and attached data. It is returned by several BaseSelector methods. fileobj File object registered. fd Underlying file descriptor. events Events that must be waited for on this file object. data Optional opaque data associated to this file object: for example, this could be used to store a per-client session ID.

selectors.SelectorKey.data

data Optional opaque data associated to this file object: for example, this could be used to store a per-client session ID.

selectors.SelectorKey.fileobj

fileobj File object registered.

selectors.SelectorKey.fd

fd Underlying file descriptor.

selectors.EpollSelector.fileno()

fileno() This returns the file descriptor used by the underlying select.epoll() object.

selectors.EpollSelector

class selectors.EpollSelector select.epoll()-based selector. fileno() This returns the file descriptor used by the underlying select.epoll() object.

selectors.KqueueSelector

class selectors.KqueueSelector select.kqueue()-based selector. fileno() This returns the file descriptor used by the underlying select.kqueue() object.

selectors.KqueueSelector.fileno()

fileno() This returns the file descriptor used by the underlying select.kqueue() object.