Module Import alias Import alias identifier Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpBitOr NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Import alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Num BinOpMod Str SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr IfExp UnaryOpNot NameLoad Str Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Num body Return NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Dict Str Str Return NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Continue TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Continue Break Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd Str IfExp AttributeLoad NameLoad attr Str Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return Expr Call NameLoad BinOpAdd IfExp AttributeLoad NameLoad attr Str Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Return orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return orelse Raise Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore ListLoad While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Continue If NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad orelse Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareGt BinOpSub NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break If CompareEq NameLoad Str body Assign NameStore NameLoad Break Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore NameLoad orelse If CompareLt Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore NameLoad orelse Assign NameStore NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareGt BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad NameLoad body If BinOpBitAnd NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Continue Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Continue Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr If CompareLt BinOpSub NameLoad AttributeLoad NameLoad attr Num body Continue If BinOpBitAnd NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Pass orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Continue ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call NameLoad NameLoad Continue ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call NameLoad NameLoad Continue If NameLoad body AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Continue orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Continue TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call NameLoad NameLoad Continue Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A json N/A Queue queue N/A socket N/A select N/A threading N/A time N/A sys processor Session Dispatcher utils print_log logger N/A READ_ONLY N/A N/A N/A N/A select POLLIN N/A select POLLPRI N/A select POLLHUP N/A select POLLERR N/A READ_WRITE N/A READ_ONLY N/A select POLLOUT N/A WRITE_ONLY N/A select POLLOUT N/A TIMEOUT 100 N/A ssl TcpSession N/A Session N/A __init__ N/A N/A self dispatcher connection address use_ssl ssl_certfile ssl_keyfile N/A N/A N/A N/A N/A Session __init__ self dispatcher N/A N/A self use_ssl use_ssl N/A N/A self raw_connection connection N/A use_ssl N/A N/A ssl N/A N/A self _connection N/A N/A ssl wrap_socket connection server_side True certfile ssl_certfile keyfile ssl_keyfile ssl_version N/A ssl PROTOCOL_SSLv23 do_handshake_on_connect False N/A N/A N/A self _connection connection N/A N/A self address N/A N/A address N/A 0 N/A :%d N/A address N/A 1 N/A N/A self name N/A N/A use_ssl TCP  SSL  N/A N/A self timeout 1000 N/A N/A N/A N/A self dispatcher add_session self N/A N/A self response_queue N/A N/A queue Queue N/A N/A self message N/A N/A self retry_msg N/A N/A self handshake N/A N/A self use_ssl N/A N/A self mode None N/A connection N/A N/A self N/A N/A N/A N/A N/A self stopped N/A N/A N/A Exception Session was stopped N/A N/A N/A self _connection N/A shutdown N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _connection shutdown N/A socket SHUT_RDWR N/A N/A N/A N/A N/A N/A N/A N/A self _connection close N/A send_response N/A N/A self response N/A N/A N/A N/A N/A msg N/A N/A N/A json dumps response N/A N/A N/A BaseException N/A e N/A N/A N/A N/A logger error N/A send_response: N/A str e N/A N/A N/A N/A N/A self response_queue put msg N/A parse_message N/A N/A self N/A N/A N/A message N/A self message N/A N/A self time N/A N/A time time N/A raw_buffer N/A N/A message find N/A N/A raw_buffer -1 N/A N/A False N/A raw_command N/A N/A N/A message N/A 0 raw_buffer strip N/A N/A self message N/A message N/A N/A raw_buffer 1 N/A raw_command N/A N/A TcpServer N/A N/A threading Thread N/A __init__ N/A N/A self dispatcher host port use_ssl ssl_certfile ssl_keyfile N/A N/A N/A N/A self shared N/A dispatcher shared N/A N/A self dispatcher N/A dispatcher request_dispatcher N/A N/A N/A N/A threading Thread __init__ self N/A N/A self daemon True N/A N/A self host host N/A N/A self port port N/A N/A self lock N/A N/A threading Lock N/A N/A self use_ssl use_ssl N/A N/A self ssl_keyfile ssl_keyfile N/A N/A self ssl_certfile ssl_certfile N/A N/A self fd_to_session N/A N/A N/A self buffer_size 4096 N/A handle_command N/A N/A self raw_command session N/A N/A N/A N/A N/A command N/A N/A json loads raw_command N/A N/A N/A N/A N/A N/A session send_response N/A error bad JSON N/A True N/A N/A N/A message_id N/A command N/A id N/A method N/A command N/A method N/A N/A N/A N/A N/A N/A session send_response N/A error request syntax error raw_command N/A N/A N/A N/A N/A self dispatcher push_request session command N/A run N/A N/A self N/A N/A N/A res N/A N/A socket getaddrinfo N/A self host N/A self port N/A socket AF_UNSPEC N/A socket SOCK_STREAM N/A N/A N/A af socktype proto cannonname sa res N/A N/A N/A sock N/A N/A socket socket af socktype proto N/A N/A N/A sock setblocking 0 N/A N/A N/A sock setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A N/A socket error N/A N/A sock None N/A N/A N/A N/A N/A N/A sock bind sa N/A N/A N/A sock listen 5 N/A N/A N/A N/A socket error N/A N/A N/A N/A sock close N/A sock None N/A N/A N/A host N/A sa N/A 0 N/A N/A af N/A socket AF_INET6 N/A N/A host N/A [%s] host N/A N/A sock None N/A N/A N/A print_log N/A N/A could not open  N/A N/A self use_ssl SSL TCP N/A  socket on %s:%d N/A host N/A self port N/A N/A N/A print_log N/A N/A N/A self use_ssl SSL TCP N/A  server started on %s:%d N/A host N/A self port N/A sock_fd N/A N/A sock fileno N/A poller N/A N/A select poll N/A N/A N/A poller register sock stop_session N/A N/A fd N/A N/A N/A N/A N/A N/A N/A poller unregister fd N/A session N/A N/A N/A self fd_to_session pop fd N/A N/A N/A session stop N/A N/A N/A BaseException N/A e N/A N/A N/A N/A logger error N/A stop_session error: N/A str e N/A check_do_handshake N/A N/A session N/A N/A N/A N/A session handshake N/A N/A N/A N/A N/A N/A N/A N/A session _connection do_handshake N/A N/A N/A N/A ssl SSLError N/A err N/A N/A N/A N/A N/A err args N/A 0 N/A ssl SSL_ERROR_WANT_READ N/A N/A N/A N/A N/A N/A N/A err args N/A 0 N/A ssl SSL_ERROR_WANT_WRITE N/A N/A N/A N/A poller modify N/A session raw_connection READ_WRITE N/A N/A N/A N/A BaseException N/A str err N/A N/A N/A poller modify N/A session raw_connection READ_ONLY N/A N/A session handshake True N/A N/A redo N/A N/A N/A N/A N/A N/A self shared stopped N/A N/A N/A N/A N/A self shared paused N/A N/A sessions N/A N/A N/A self fd_to_session keys N/A sessions N/A N/A N/A N/A logger info N/A closing %d sessions N/A len sessions N/A fd sessions N/A N/A N/A stop_session fd N/A N/A N/A time sleep 1 N/A N/A redo N/A N/A events redo N/A redo N/A N/A N/A now N/A N/A time time N/A N/A fd session N/A N/A N/A self fd_to_session items N/A N/A N/A N/A N/A now N/A session time 0.01 N/A session message N/A N/A cmd N/A N/A session parse_message N/A N/A cmd N/A N/A N/A N/A cmd quit N/A N/A data False N/A N/A N/A session time now N/A N/A N/A self handle_command cmd session N/A N/A N/A N/A session response_queue empty N/A N/A mode READ_ONLY N/A N/A N/A N/A N/A N/A session response_queue qsize 200 N/A N/A mode READ_WRITE N/A N/A mode WRITE_ONLY N/A N/A mode N/A session mode N/A N/A N/A N/A poller modify N/A session raw_connection mode N/A N/A session mode mode N/A N/A N/A now N/A session time N/A session timeout N/A N/A N/A stop_session fd N/A events N/A N/A poller poll TIMEOUT N/A N/A fd flag events N/A N/A N/A fd sock_fd N/A N/A N/A flag N/A N/A select POLLIN N/A select POLLPRI N/A N/A N/A N/A N/A connection address N/A N/A sock accept N/A session N/A TcpSession N/A self dispatcher connection address use_ssl N/A self use_ssl ssl_certfile N/A self ssl_certfile ssl_keyfile N/A self ssl_keyfile N/A N/A N/A BaseException N/A e N/A N/A N/A N/A logger error N/A N/A N/A cannot start TCP session N/A str e N/A repr address N/A N/A N/A connection close N/A N/A connection N/A session _connection N/A N/A N/A connection setblocking False N/A N/A N/A self fd_to_session N/A N/A N/A connection fileno session N/A N/A N/A poller register connection READ_ONLY N/A N/A session N/A N/A self fd_to_session N/A fd N/A s N/A session _connection N/A N/A N/A N/A check_do_handshake session N/A N/A N/A BaseException N/A e N/A N/A N/A stop_session fd N/A N/A now N/A N/A time time N/A N/A N/A now N/A session time 0.01 N/A N/A N/A N/A flag N/A N/A select POLLIN N/A select POLLPRI N/A N/A N/A N/A data N/A N/A s recv N/A self buffer_size N/A N/A N/A N/A ssl SSLError N/A x N/A N/A N/A N/A N/A x args N/A 0 N/A ssl SSL_ERROR_WANT_READ N/A N/A N/A N/A N/A N/A N/A x args N/A 0 N/A ssl SSL_ERROR_SSL N/A N/A N/A N/A N/A N/A logger error N/A SSL recv error: N/A repr x N/A N/A N/A N/A socket error N/A x N/A N/A N/A N/A N/A x args N/A 0 104 N/A N/A N/A N/A logger error N/A N/A recv error:  N/A repr x N/A  %d fd N/A N/A stop_session fd N/A N/A N/A ValueError N/A e N/A N/A N/A N/A logger error N/A N/A recv error:  N/A str e N/A  %d fd N/A N/A stop_session fd N/A N/A data N/A N/A N/A session message data N/A N/A N/A len data N/A self buffer_size N/A N/A N/A N/A redo append N/A fd flag N/A N/A data N/A N/A N/A stop_session fd N/A N/A N/A N/A flag N/A select POLLHUP N/A N/A N/A print_log client hung up N/A session address N/A N/A stop_session fd N/A N/A N/A flag N/A select POLLOUT N/A N/A N/A session retry_msg N/A N/A next_msg N/A session retry_msg N/A N/A N/A N/A next_msg N/A N/A N/A session response_queue get_nowait N/A N/A N/A N/A queue Empty N/A N/A N/A N/A N/A sent N/A N/A s send next_msg N/A N/A N/A N/A socket error N/A x N/A N/A N/A N/A logger error N/A send error: N/A str x N/A N/A stop_session fd N/A N/A N/A session retry_msg N/A next_msg N/A sent N/A N/A N/A flag N/A select POLLERR N/A N/A N/A print_log handling exceptional condition for N/A session address N/A N/A stop_session fd N/A N/A N/A flag N/A select POLLNVAL N/A N/A N/A print_log invalid request N/A session address N/A N/A stop_session fd N/A N/A print_log TCP thread terminating N/A N/A N/A self shared stopped N/A N/A