Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias identifier ImportFrom alias Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str Num Assign AttributeStore NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad orelse Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareGt BinOpSub NameLoad AttributeLoad NameLoad attr BinOpDiv NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareIn Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Pass orelse Raise handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A time N/A socket N/A struct N/A errno N/A logging shadowsocks eventloop asyncdns lru_cache encrypt shadowsocks utils shadowsocks_utils shadowsocks.common parse_header N/A BUF_SIZE 16384 N/A CACHE_TIMEOUT 10 DNSRelay N/A object N/A __init__ N/A N/A self config N/A N/A N/A N/A self _loop None N/A N/A self _config config N/A N/A self _last_time N/A N/A time time N/A N/A self _local_addr N/A N/A config N/A local_address 53 N/A N/A self _remote_addr N/A N/A config N/A server N/A config N/A server_port N/A dns_addr N/A config N/A dns N/A addrs N/A N/A socket getaddrinfo dns_addr 53 0 N/A socket SOCK_DGRAM N/A socket SOL_UDP N/A N/A addrs N/A N/A N/A Exception can't get addrinfo for DNS address N/A N/A af socktype proto canonname sa N/A addrs N/A 0 N/A dns_port N/A N/A struct pack >H 53 N/A N/A af N/A socket AF_INET N/A N/A N/A self _address_to_send N/A N/A N/A N/A socket inet_aton N/A sa N/A 0 dns_port N/A N/A N/A self _address_to_send N/A N/A N/A N/A socket inet_pton af N/A sa N/A 0 dns_port N/A add_to_loop N/A N/A self loop N/A N/A N/A N/A self _loop N/A N/A N/A Exception already add to loop N/A N/A self _loop loop N/A N/A N/A loop add_handler N/A self handle_events N/A handle_events N/A N/A self events N/A N/A N/A N/A N/A UDPDNSRelay N/A DNSRelay N/A __init__ N/A N/A self config N/A N/A N/A N/A N/A DNSRelay __init__ self config N/A N/A self _id_to_addr N/A N/A lru_cache LRUCache CACHE_TIMEOUT N/A N/A self _local_sock None N/A N/A self _remote_sock None N/A sockets N/A N/A addr N/A N/A self _local_addr N/A self _remote_addr N/A N/A addrs N/A N/A socket getaddrinfo N/A addr N/A 0 N/A addr N/A 1 0 N/A socket SOCK_DGRAM N/A socket SOL_UDP N/A N/A N/A len addrs 0 N/A N/A N/A Exception N/A can't get addrinfo for %s:%d addr N/A N/A af socktype proto canonname sa N/A addrs N/A 0 N/A sock N/A N/A socket socket af socktype proto N/A N/A N/A sock setblocking False N/A N/A N/A sockets append sock N/A N/A N/A self _local_sock N/A self _remote_sock sockets N/A N/A N/A N/A self _local_sock bind N/A self _local_addr N/A add_to_loop N/A N/A self loop N/A N/A N/A N/A N/A DNSRelay add_to_loop self loop N/A N/A N/A loop add N/A self _local_sock N/A eventloop POLL_IN N/A N/A N/A loop add N/A self _remote_sock N/A eventloop POLL_IN N/A _handle_local N/A N/A self sock N/A N/A N/A N/A data addr N/A N/A sock recvfrom BUF_SIZE N/A header N/A N/A asyncdns parse_header data N/A header N/A N/A N/A N/A req_id N/A header N/A 0 N/A req N/A N/A asyncdns parse_response data N/A N/A N/A self _id_to_addr N/A req_id addr N/A data N/A N/A self _address_to_send data N/A data N/A N/A encrypt encrypt_all N/A N/A self _config N/A password N/A N/A self _config N/A method 1 data N/A N/A N/A N/A self _remote_sock sendto data N/A self _remote_addr N/A N/A N/A logging info request %s N/A req hostname N/A N/A N/A Exception N/A e N/A N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A logging error e N/A _handle_remote N/A N/A self sock N/A N/A N/A N/A data addr N/A N/A sock recvfrom BUF_SIZE N/A data N/A N/A N/A N/A data N/A N/A encrypt encrypt_all N/A N/A self _config N/A password N/A N/A self _config N/A method 0 data N/A header_result N/A parse_header data N/A N/A header_result None N/A N/A N/A None None N/A N/A addrtype dest_addr dest_port header_length header_result N/A data N/A data N/A header_length N/A header N/A N/A asyncdns parse_header data N/A header N/A N/A req_id N/A header N/A 0 N/A res N/A N/A asyncdns parse_response data N/A addr N/A N/A N/A self _id_to_addr get req_id None N/A addr N/A N/A N/A N/A N/A self _local_sock sendto data addr N/A N/A N/A self _id_to_addr N/A req_id N/A N/A N/A logging info response %s res N/A N/A N/A Exception N/A e N/A N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A logging error e N/A handle_events N/A N/A self events N/A N/A N/A N/A sock fd event events N/A N/A N/A sock N/A self _local_sock N/A N/A N/A N/A self _handle_local sock N/A N/A N/A sock N/A self _remote_sock N/A N/A N/A N/A self _handle_remote sock N/A now N/A N/A time time N/A N/A N/A now N/A self _last_time N/A CACHE_TIMEOUT 2 N/A N/A N/A N/A N/A self _id_to_addr sweep N/A N/A TCPDNSRelay N/A DNSRelay N/A __init__ N/A N/A self config N/A N/A N/A N/A N/A DNSRelay __init__ self config N/A N/A self _local_to_remote N/A N/A N/A self _remote_to_local N/A N/A N/A self _local_to_encryptor N/A N/A addrs N/A N/A socket getaddrinfo N/A N/A self _local_addr N/A 0 N/A N/A self _local_addr N/A 1 0 N/A socket SOCK_STREAM N/A socket SOL_TCP N/A N/A N/A len addrs 0 N/A N/A N/A Exception N/A can't get addrinfo for %s:%d N/A self _local_addr N/A N/A af socktype proto canonname sa N/A addrs N/A 0 N/A N/A self _listen_sock N/A N/A socket socket af socktype proto N/A N/A N/A N/A self _listen_sock setblocking False N/A N/A N/A N/A self _listen_sock setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A N/A self _listen_sock bind N/A self _local_addr N/A N/A N/A N/A self _listen_sock listen 1024 N/A _handle_conn N/A N/A self sock N/A N/A N/A N/A N/A N/A local addr N/A N/A sock accept N/A addrs N/A N/A socket getaddrinfo N/A N/A self _remote_addr N/A 0 N/A N/A self _remote_addr N/A 1 0 N/A socket SOCK_STREAM N/A socket SOL_TCP N/A N/A N/A len addrs 0 N/A N/A N/A Exception N/A can't get addrinfo for %s:%d N/A self _remote_addr N/A N/A af socktype proto canonname sa N/A addrs N/A 0 N/A remote N/A N/A socket socket af socktype proto N/A N/A N/A local setsockopt N/A socket SOL_TCP N/A socket TCP_NODELAY 1 N/A N/A N/A remote setsockopt N/A socket SOL_TCP N/A socket TCP_NODELAY 1 N/A N/A N/A self _local_to_remote N/A local remote N/A N/A N/A self _remote_to_local N/A remote local N/A N/A N/A N/A self _loop add local 0 N/A N/A N/A N/A self _loop add remote N/A eventloop POLL_OUT N/A N/A N/A N/A N/A remote connect N/A self _remote_addr N/A N/A N/A N/A OSError IOError N/A e N/A N/A N/A N/A N/A eventloop errno_from_exception e N/A N/A errno EINPROGRESS N/A errno EAGAIN N/A N/A N/A N/A N/A N/A N/A N/A OSError IOError N/A e N/A N/A N/A N/A logging error e N/A _destroy N/A N/A self local remote N/A N/A N/A N/A local N/A self _local_to_remote N/A N/A N/A N/A N/A self _loop remove local N/A N/A N/A N/A self _loop remove remote N/A N/A N/A self _local_to_remote N/A local N/A N/A N/A self _remote_to_local N/A remote N/A N/A local N/A self _local_to_encryptor N/A N/A N/A N/A self _local_to_encryptor N/A local N/A N/A N/A local close N/A N/A N/A remote close N/A N/A N/A N/A logging error already destroyed N/A _handle_local N/A N/A self local event N/A N/A N/A remote N/A N/A self _local_to_remote N/A local N/A encryptor N/A N/A N/A self _local_to_encryptor get local None N/A N/A event N/A eventloop POLL_ERR N/A N/A N/A N/A self _destroy local remote N/A N/A N/A event N/A eventloop POLL_IN N/A N/A N/A N/A data N/A N/A local recv BUF_SIZE N/A N/A data N/A N/A N/A N/A self _destroy local remote N/A N/A N/A encryptor N/A N/A N/A N/A req N/A N/A asyncdns parse_response N/A data N/A 2 N/A req N/A N/A N/A N/A logging info request %s N/A req hostname N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging error e N/A encryptor N/A N/A encrypt Encryptor N/A N/A self _config N/A password N/A N/A self _config N/A method N/A N/A N/A self _local_to_encryptor N/A local encryptor N/A data N/A N/A self _address_to_send data N/A data N/A N/A encryptor encrypt data N/A N/A N/A remote send data N/A N/A N/A N/A OSError IOError N/A e N/A N/A N/A N/A self _destroy local N/A N/A self _local_to_remote N/A local N/A N/A N/A logging error e N/A _handle_remote N/A N/A self remote event N/A N/A N/A local N/A N/A self _remote_to_local N/A remote N/A N/A event N/A eventloop POLL_ERR N/A N/A N/A N/A self _destroy local remote N/A N/A N/A event N/A eventloop POLL_OUT N/A N/A N/A N/A N/A self _loop modify remote N/A eventloop POLL_IN N/A N/A N/A N/A self _loop modify local N/A eventloop POLL_IN N/A N/A N/A event N/A eventloop POLL_IN N/A N/A N/A N/A data N/A N/A remote recv BUF_SIZE N/A N/A data N/A N/A N/A N/A self _destroy local remote N/A N/A encryptor N/A N/A self _local_to_encryptor N/A local N/A data N/A N/A encryptor decrypt data N/A N/A N/A res N/A N/A asyncdns parse_response N/A data N/A 2 N/A res N/A N/A N/A N/A logging info response %s res N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging error e N/A N/A N/A local send data N/A N/A N/A N/A OSError IOError N/A e N/A N/A N/A N/A self _destroy local remote N/A N/A N/A logging error e N/A add_to_loop N/A N/A self loop N/A N/A N/A N/A N/A DNSRelay add_to_loop self loop N/A N/A N/A loop add N/A self _listen_sock N/A eventloop POLL_IN N/A handle_events N/A N/A self events N/A N/A N/A N/A sock fd event events N/A N/A N/A sock N/A self _listen_sock N/A N/A N/A N/A self _handle_conn sock N/A N/A N/A sock N/A self _local_to_remote N/A N/A N/A N/A self _handle_local sock event N/A N/A N/A sock N/A self _remote_to_local N/A N/A N/A N/A self _handle_remote sock event N/A N/A main N/A N/A N/A N/A N/A N/A N/A shadowsocks_utils check_python N/A config N/A N/A shadowsocks_utils get_config True N/A N/A N/A encrypt init_table N/A config N/A password N/A config N/A method N/A N/A N/A logging info N/A starting dns at %s:%d N/A N/A config N/A local_address 53 N/A N/A config N/A dns N/A N/A config get dns 8.8.8.8 N/A loop N/A N/A eventloop EventLoop N/A udprelay N/A UDPDNSRelay config N/A N/A N/A udprelay add_to_loop loop N/A tcprelay N/A TCPDNSRelay config N/A N/A N/A tcprelay add_to_loop loop N/A N/A N/A loop run N/A N/A N/A __name__ __main__ N/A N/A N/A main