PyDocs

Nav

Networking and Interprocess Communication

epoll

select

functionDeprecated 3.4Linux >= 2.5.44
  • epoll(sizehint=-1, flags=0)
Deprecated since 3.4. The flags parameter. select.EPOLL_CLOEXEC is used by default now. Use os.set_inheritable() to make the file descriptor inheritable.
select.epoll(sizehint=-1, flags=0)

Returns an epolling object

sizehint must be a positive integer or -1 for the default size. The
sizehint is used to optimize internal data structures. It doesn't limit
the maximum number of monitored events.
Changed in 3.3, 3.4, 3.15
  • 3.3: Added the flags parameter.
  • 3.4: Support for the with statement was added. The new file descriptor is now non-inheritable.
  • 3.15: When CPython is built, this function may be disabled using --disable-epoll.
Members of epoll

c

close
Close the epoll control file descriptor.
closed
True if the epoll handler is closed

f

fileno
Return the epoll control file descriptor.
fromfd
Create an epoll object from a given control fd.

m

modify
Modify event mask for a registered file descriptor.

p

poll
Wait for events on the epoll file descriptor.

r

register
Registers a new fd or raises an OSError if the fd is already registered.

u

unregister
Remove a registered file descriptor from the epoll object.
0 Examples
No examples for select/epoll.
See Also
No see-alsos for select/epoll
0 Notes
No notes for epoll