Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareLt NameLoad Num body Assign NameStore Num Assign NameStore ListLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad AttributeLoad NameLoad attr Return For TupleStore NameStore NameStore Call NameLoad NameLoad TupleLoad Str Str Str body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad Str
N/A N/A 
Provides an asynchronous multi-socket selector with a poll method
built on top of select.select for cross-platform compatibility.

After polling select, two events are emitted for each socket and kind-of-ready,
``select_<kind>`` and ``select_<kind>_<sock.fileno()>``, where
``<kind>`` is one of ``recv, send, err``.

The event payload is always the fileno of the corresponding socket.
(The event plugin deep-copies the payload, but sockets are not serializable)

Note that the event loop is stopped during selecting. This is good in that
the loop does not consume 100% CPU, but it means you have to register
at least a slow timer if you do stuff on ``event_tick`` and
expect it to be emitted frequently.
 __future__ absolute_import N/A logging N/A select spockbot.plugins.base PluginBase pl_announce N/A logger N/A N/A logging getLogger spockbot SelectPlugin N/A PluginBase N/A N/A requires N/A Event Timers __init__ N/A N/A self ploader settings N/A N/A N/A N/A N/A N/A super SelectPlugin self __init__ ploader settings N/A N/A self sockets N/A set N/A N/A self sending N/A set N/A N/A N/A ploader provides Select self N/A register_socket N/A N/A self sock N/A N/A N/A ``poll()``ing will emit events when this socket is ready. N/A N/A N/A N/A self sockets add sock N/A unregister_socket N/A N/A self sock N/A N/A N/A N/A N/A N/A self sockets remove sock N/A schedule_sending N/A N/A self sock N/A N/A N/A Emit one event the next time this socket is ready to send. N/A N/A N/A N/A self sending add sock N/A poll N/A N/A self N/A N/A N/A timeout N/A N/A N/A self timers get_timeout N/A N/A timeout 0 N/A N/A timeout 5 N/A select_args N/A N/A tuple N/A self sockets N/A tuple N/A self sending N/A tuple N/A self sockets timeout N/A N/A N/A N/A self sending clear N/A N/A N/A ready_lists N/A N/A select select select_args N/A N/A N/A N/A select error N/A e N/A N/A N/A N/A logger error SELECTSOCKET: Socket Error: "%s" %s N/A str e N/A e args N/A N/A N/A ready_socks kind N/A zip ready_lists N/A recv send err N/A N/A sock ready_socks N/A N/A N/A N/A N/A self event emit N/A select_%s kind N/A N/A sock fileno N/A N/A N/A N/A self event emit N/A select_%s_%s N/A kind N/A N/A sock fileno N/A N/A sock fileno N/A N/A N/A pl_announce Select