Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TryFinally body Return Call NameLoad NameLoad finalbody Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr While UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad NameLoad If CompareLt NameLoad Num body Break Expr Call AttributeLoad NameLoad 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 Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str AugAssignAdd AttributeStore NameLoad attr Num TryFinally body TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str finalbody AugAssignSub AttributeStore NameLoad attr Num If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name TupleStore NameStore NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name TupleStore NameStore NameStore body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A errno N/A sys N/A logging N/A select N/A socket N/A time N/A threading pox.lib.util makePinger pox.lib.ioworker.io_worker IOWorker N/A log N/A N/A logging getLogger io_master STSIOWorker N/A IOWorker N/A N/A  An IOWorker that works with our IOMaster  __init__ N/A N/A self socket on_close N/A N/A N/A N/A N/A IOWorker __init__ self N/A N/A self socket socket N/A N/A self closed False N/A N/A self on_close on_close N/A fileno N/A N/A self N/A N/A N/A  Return the wrapped sockets' fileno  N/A N/A N/A N/A self socket fileno N/A send N/A N/A self data N/A N/A N/A  send data from the client side. fire and forget.  N/A N/A N/A IOWorker send self data N/A close N/A N/A self N/A N/A N/A  Register this socket to be closed. fire and forget  N/A N/A N/A IOWorker close self N/A N/A N/A self on_close self N/A N/A IOMaster N/A object N/A N/A 
  an IO handler that handles the select work for our IO worker
   N/A _select_timeout 5 N/A _BUF_SIZE 8192 __init__ N/A N/A self N/A N/A N/A N/A self _workers N/A set N/A N/A self pinger N/A makePinger N/A N/A self closed False N/A N/A self _close_requested False N/A N/A self _in_select 0 N/A create_worker_for_socket N/A N/A self socket N/A N/A N/A 
    Return an IOWorker wrapping the given socket.
     on_close N/A N/A worker N/A N/A N/A N/A N/A N/A worker socket close N/A N/A worker closed True N/A N/A N/A N/A self _workers discard worker N/A N/A worker N/A STSIOWorker socket on_close on_close N/A N/A N/A N/A self _workers add worker N/A worker N/A monkey_time_sleep N/A N/A self N/A N/A N/A monkey patches time.sleep to use this io_masters's time.sleep N/A N/A self original_time_sleep N/A time sleep N/A N/A time _orig_sleep N/A time sleep N/A N/A time sleep N/A self sleep N/A raw_input N/A N/A self prompt N/A N/A N/A  raw_input replacement that enables background IO to take place.
        NOTE: this migrates the IO to a specifically created BackgroundIOThread
        while readline's raw_input is running. raw_input must run in the main
        thread so the terminal is properly restored on CTRL-C.
        The Background IO thread is notified and terminates before the return of this
        function, so no concurrent IO takes place.
     N/A _io_master self BackgroundIOThread N/A N/A threading Thread N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A threading Thread __init__ self name BackgroundIOThread N/A N/A self done False N/A run N/A N/A self N/A N/A N/A N/A N/A self done N/A N/A N/A N/A _io_master select None N/A N/A N/A N/A N/A self sleep 0.05 N/A io_thread N/A BackgroundIOThread N/A N/A io_thread daemon False N/A N/A N/A io_thread start N/A N/A N/A N/A raw_input prompt N/A N/A  make sure background IO is terminated gracefully before returning  N/A N/A io_thread done True N/A N/A N/A self _ping N/A N/A N/A io_thread join N/A _ping N/A N/A self N/A N/A N/A N/A self pinger N/A N/A N/A N/A N/A self pinger ping N/A close_all N/A N/A self N/A N/A N/A N/A N/A self _in_select 0 N/A N/A N/A self _close_requested True N/A N/A N/A self _ping N/A N/A N/A N/A self _do_close_all N/A _do_close_all N/A N/A self N/A N/A N/A w N/A list N/A self _workers N/A N/A N/A N/A N/A N/A w close N/A N/A N/A Exception N/A e N/A N/A N/A N/A log warn Error closing IOWorker %s: %s (%d) w N/A e strerror N/A e errno N/A N/A N/A time sleep N/A self sleep N/A N/A N/A time sleep N/A self original_time_sleep N/A N/A self pinger N/A N/A N/A N/A N/A self pinger ping N/A N/A hasattr N/A self pinger close N/A N/A N/A N/A N/A self pinger close N/A N/A self pinger None N/A N/A self closed True N/A poll N/A N/A self N/A N/A N/A N/A N/A self select 0 N/A sleep N/A N/A self timeout N/A N/A N/A  invokes select.select continuously for exactly timeout seconds, then returns.  N/A start N/A N/A time time N/A N/A N/A self closed N/A N/A elapsed N/A N/A N/A time time start N/A remaining N/A timeout elapsed N/A N/A remaining 0.01 N/A N/A N/A N/A N/A self select remaining N/A deschedule_worker N/A N/A self io_worker N/A N/A N/A N/A N/A N/A self _workers discard io_worker N/A reschedule_worker N/A N/A self io_worker N/A N/A N/A N/A N/A N/A self _workers add io_worker N/A grab_workers_rwe N/A N/A self N/A N/A N/A read_sockets N/A N/A list N/A self _workers N/A N/A self pinger N/A write_sockets N/A worker N/A worker N/A self _workers N/A worker _ready_to_send N/A exception_sockets N/A list N/A self _workers N/A N/A read_sockets write_sockets exception_sockets N/A select N/A N/A self timeout N/A 0 N/A N/A  Waits up to timeout seconds, but may return before then if I/O is
    ready.  N/A N/A self _in_select 1 N/A N/A N/A N/A N/A N/A read_sockets write_sockets exception_sockets N/A N/A self grab_workers_rwe N/A N/A rlist wlist elist N/A N/A select select read_sockets write_sockets exception_sockets timeout N/A N/A N/A self handle_workers_rwe rlist wlist elist N/A N/A N/A N/A select error N/A N/A N/A N/A N/A sys stderr write File Descriptor Closed
 N/A N/A TypeError N/A N/A N/A N/A N/A sys stderr write File Descriptor Closed
 N/A N/A N/A self _in_select 1 N/A N/A N/A N/A self _in_select 0 N/A self _close_requested N/A N/A self closed N/A N/A N/A N/A self _do_close_all N/A handle_workers_rwe N/A N/A self rlist wlist elist N/A N/A N/A N/A N/A self pinger rlist N/A N/A N/A N/A N/A self pinger pongAll N/A N/A N/A rlist remove N/A self pinger N/A worker elist N/A N/A N/A N/A worker close N/A N/A worker N/A self _workers N/A N/A N/A N/A N/A self _workers discard worker N/A worker rlist N/A N/A N/A N/A data N/A N/A N/A worker socket recv N/A self _BUF_SIZE N/A data N/A N/A N/A N/A worker _push_receive_data data N/A N/A N/A N/A log warn Closing socket due to empty read N/A N/A N/A worker close N/A N/A N/A N/A self _workers discard worker N/A N/A N/A N/A socket error N/A N/A s_errno strerror N/A N/A N/A N/A log error N/A Socket error:  strerror N/A N/A N/A worker close N/A N/A N/A N/A self _workers discard worker N/A worker wlist N/A N/A N/A N/A l N/A N/A N/A worker socket send N/A worker send_buf N/A N/A l 0 N/A N/A N/A N/A worker _consume_send_buf l N/A N/A N/A N/A socket error N/A N/A s_errno strerror N/A N/A N/A s_errno N/A errno EAGAIN N/A N/A N/A N/A log error N/A Socket error:  strerror N/A N/A N/A worker close N/A N/A N/A N/A self _workers discard worker N/A N/A