0MQ polling related functions and classes.
A stateful poll interface that mirrors Python’s built-in poll.
Modify the flags for an already registered 0MQ socket or native fd.
Poll the registered 0MQ or native fds for I/O.
Parameters : | timeout : float, int
|
---|
Register a 0MQ socket or native fd for I/O monitoring.
register(s,0) is equivalent to unregister(s).
Parameters : | socket : zmq.Socket or native socket
flags : int
|
---|
Remove a 0MQ socket or native fd for I/O monitoring.
Parameters : | socket : Socket
|
---|
Return the result of poll as a lists of sockets ready for r/w/exception.
This has the same interface as Python’s built-in select.select() function.
Parameters : | timeout : float, int, optional
rlist : list of sockets/FDs
wlist : list of sockets/FDs
xlist : list of sockets/FDs
|
---|---|
Returns : | (rlist, wlist, xlist) : tuple of lists of sockets (length 3)
|