# User's Guide:i2p.select

From Python-I2P.

Module `i2p.select` emulates the Python module `select`.

With this module, a program can perform select and poll commands on traditional and I2P sockets.

poll()

     Returns a polling object.  Works on SAM sockets and Python sockets.
     See select.poll() in the Python library for more information.

select(readlist, writelist, errlist, timeout=None)

     Performs a select call.  Works on SAM sockets and Python sockets.
     See select.select() in the Python library for more information.

Polling flags

     POLLIN = 1
     POLLOUT = 4
     POLLERR = 8
     POLLHUP = 16
     POLLNVAL = 32
     POLLPRI = 1