%PDF- %PDF-
Direktori : /lib64/python2.7/site-packages/tornado/platform/ |
Current File : //lib64/python2.7/site-packages/tornado/platform/caresresolver.pyo |
� ��L]c @� s� d d l m Z m Z m Z m Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functiont with_statementN( t gen( t IOLoop( t Resolvert is_valid_ipt CaresResolverc B� sA e Z d Z d d � Z d � Z d � Z e j d d � � Z RS( s> Name resolver based on the c-ares library. This is a non-blocking and non-threaded resolver. It may not produce the same results as the system resolver, but can be used for non-blocking resolution when threads cannot be used. c-ares fails to resolve some names when ``family`` is ``AF_UNSPEC``, so it is only recommended for use in ``AF_INET`` (i.e. IPv4). This is the default for ``tornado.simple_httpclient``, but other libraries may default to ``AF_UNSPEC``. .. versionchanged:: 4.1 The ``io_loop`` argument is deprecated. c C� s: | p t j � | _ t j d | j � | _ i | _ d S( Nt sock_state_cb( R t currentt io_loopt pycarest Channelt _sock_state_cbt channelt fds( t selfR ( ( sD /usr/lib64/python2.7/site-packages/tornado/platform/caresresolver.pyt initialize s c C� s� | r t j n d | r! t j n d B} | sK | j j | � | j | =nX | | j k r} | j j | | � | | j | <n&