§
    Hºi¡Š  ã                   ó°  — d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm	Z	 ddlm
Z
 ddlmZ d	„ Z ed
¦  «        Z ed¦  «        e_        ej        j                             g d¢¦  «         ej        j        D ] Z eej        e edez   ¦  «        ¦  «         Œ!ej        j        j        D ]%Z eej        j        e edez   ¦  «        ¦  «         Œ&ej        j        j        D ]%Z eej        j        e edez   ¦  «        ¦  «         Œ&ej        D ]"Zedk    rŒ	 eee edez   ¦  «        ¦  «         Œ#[eZdZdZe                     ej        d¦  «        Ze                     ej        d¦  «        ZeZej                             dd¦  «                              ¦   «         dv r' e!ed¦  «        re                     ej"        d¦  «        Zd„ Z#d„ Z$d„ Z%d„ Z& e!ej'        d¦  «        rd„ Z(nd „ Z( G d!„ d"ej)        j*        ¦  «        Z+ G d#„ d$¦  «        Z, G d%„ d&¦  «        Z- e- e,¦   «         ¬'¦  «        Z)ej.        d(dd(fd)„Z/d*„ Z0d+„ Z1d,„ Z2d9d-„Z3d.„ Z4d/„ Z5d0„ Z6d1„ Z7d2„ Z8	 ej9         :                    dd(¬3¦  «         n# ej9        j;        $ r d(Z<Y ne=$ r d4Z<Y nw xY wed5dddd4d4d4d4dd4fd6„Z>ed5dddd4d4dfd7„Z?d8„ Z@e?ej'        _?        e>ej'        _>        dS ):z1greendns - non-blocking DNS support for Eventlet
é    N)Úpatcher)Ú_socket_nodns)Úos)Útime)Úselect)Ússlc                 óh   — t           t          t          t          t          dœ}t          j        | fi |¤ŽS )N)r   r   r   Úsocketr   )r   r   r   r   r   r   Úimport_patched)Úmodule_nameÚmoduless     ú^/home/mmwave/public_html/mmwave/venv/lib/python3.11/site-packages/eventlet/support/greendns.pyr   r   0   s:   € õ ÝÝÝÝðð €Gõ Ô! +Ð9Ð9°Ð9Ð9Ð9ó    Údnszdns.rdtypes)Ú
dnskeybaseÚdsbaseÚtxtbasezdns.rdtypes.zdns.rdtypes.IN.zdns.rdtypes.ANY.Úrdtypeszdns.g      $@zLookup timed outzName or service not knownÚEVENTLET_DEPRECATED_EAI_NODATAÚ )Ú1ÚyÚyesÚ
EAI_NODATAú#No address associated with hostnamec                 ó    —  | j         | j        Ž ‚©N)Ú	__class__Úargs)Úerror_instances    r   Ú_raise_new_errorr!   c   s   € Ø
"ˆ.Ô
" NÔ$7Ð
8Ð8r   c                 óª   — t          | t          ¦  «        sdS 	 t          j                             | ¦  «         dS # t          j        j        $ r Y dS w xY w)z+Return True if host is a valid IPv4 addressFT)Ú
isinstanceÚstrr   Úipv4Ú	inet_atonÚ	exceptionÚSyntaxError©Úhosts    r   Úis_ipv4_addrr+   g   sd   € å�d�CÑ Ô ð ØˆuðÝŒ×Ò˜4Ñ Ô Ð ð ˆtøõ Œ=Ô$ð ð ð Øˆuˆuðøøøs   ™: ºAÁAc                 óâ   — t          | t          ¦  «        sdS |                      dd¦  «        d         } 	 t          j                             | ¦  «         dS # t          j        j        $ r Y dS w xY w)z+Return True if host is a valid IPv6 addressFú%é   r   T)r#   r$   Úsplitr   Úipv6r&   r'   r(   r)   s    r   Úis_ipv6_addrr1   s   s|   € å�d�CÑ Ô ð ØˆuØ�:Š:�c˜1ÑÔ˜aÔ €DðÝŒ×Ò˜4Ñ Ô Ð ð ˆtøõ Œ=Ô$ð ð ð Øˆuˆuðøøøs   µA ÁA.Á-A.c                 ó>   — t          | ¦  «        pt          | ¦  «        S )z3Return True if host is a valid IPv4 or IPv6 address)r+   r1   r)   s    r   Ú
is_ip_addrr3   €   s   € å˜ÑÔÐ3¥¨dÑ!3Ô!3Ð3r   Ú_compute_expirationc                 ó,   — |                       |¦  «        S r   )r4   ©ÚqueryÚtimeouts     r   Úcompute_expirationr9   ˆ   s   € Ø×(Ò(¨Ñ1Ô1Ð1r   c                 ó8   — |                       |¦  «        d         S )Nr.   )Ú_compute_timesr6   s     r   r9   r9   ‹   s   € Ø×#Ò# GÑ,Ô,¨QÔ/Ð/r   c                   ó   — e Zd ZdZdd„ZdS )ÚHostsAnswerz%Answer class for HostsResolver objectTc                 ó  — d| _         || _        || _        || _        || _        |s |rt
          j                             ¦   «         ‚|| _        t          |d¦  «        rt          j
        ¦   «         |j        z   nd| _        dS )a^  Create a new answer

        :qname: A dns.name.Name instance of the query name
        :rdtype: The rdatatype of the query
        :rdclass: The rdataclass of the query
        :rrset: The dns.rrset.RRset with the response, must have ttl attribute
        :raise_on_no_answer: Whether to raise dns.resolver.NoAnswer if no
           answer.
        NÚttlr   )ÚresponseÚqnameÚrdtypeÚrdclassÚcanonical_namer   ÚresolverÚNoAnswerÚrrsetÚhasattrr   r?   Ú
expiration)ÚselfrA   rB   rC   rG   Úraise_on_no_answers         r   Ú__init__zHostsAnswer.__init__’   s‹   € ð ˆŒØˆŒ
ØˆŒØˆŒØ#ˆÔØð 	*Ð+ð 	*Ý”,×'Ò'Ñ)Ô)Ð)ØˆŒ
å(/°°uÑ(=Ô(=ðE�4œ9™;œ;Ø œ9ñ%ð %ØCDð 	Œˆˆr   N)T)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rL   © r   r   r=   r=   �   s4   € € € € € Ø/Ð/ðFð Fð Fð Fð Fð Fr   r=   c                   ó–   — e Zd ZdZ ej        dej        ¦  «        Zdefd„Z	d„ Z
d„ Zej        j        ej        j        dddfd	„Zd
„ ZdS )ÚHostsResolverzºClass to parse the hosts file

    Attributes
    ----------

    :fname: The filename of the hosts file in use.
    :interval: The time between checking for hosts file modification
    zæ
        \s*  # Leading space
        ([^\r\n#]*?)  # The actual match, non-greedy so as not to include trailing space
        \s*  # Trailing space
        (?:[#][^\r\n]+)?  # Comments
        (?:$|[\r\n]+)  # EOF or newline
    Nc                 ó0  — i | _         i | _        i | _        || _        || _        |€Lt
          j        dk    rd| _        n4t
          j        dk    r$t
          j                             d¦  «        | _        d| _	        | j        r|  
                    ¦   «          d S d S )NÚposixz
/etc/hostsÚntz'%SystemRoot%\system32\drivers\etc\hostsr   )Ú_v4Ú_v6Ú_aliasesÚintervalÚfnamer   ÚnameÚpathÚ
expandvarsÚ
_last_loadÚ_load)rJ   r[   rZ   s      r   rL   zHostsResolver.__init__º   s•   € ØˆŒØˆŒØˆŒØ ˆŒØˆŒ
Øˆ=ÝŒw˜'Ò!Ð!Ø)�”
�
Ý”˜D’�ÝœW×/Ò/Ø>ñ@ô @�”
àˆŒØŒ:ð 	Ø�JŠJ‰LŒLˆLˆLˆLð	ð 	r   c                 ó(  — 	 t          | j        d¦  «        5 }|                     ¦   «         }ddd¦  «         n# 1 swxY w Y   n# t          $ r g cY S w xY w|                     d¬¦  «        }t          d| j                             |¦  «        ¦  «        S )z½Read the contents of the hosts file

        Return list of lines, comment lines and empty lines are
        excluded.

        Note that this performs disk I/O so can be blocking.
        ÚrbNÚignore)Úerrors)Úopenr[   ÚreadÚOSErrorÚdecodeÚfilterÚLINES_REÚfindall)rJ   ÚfpÚfdataÚudatas       r   Ú
_readlineszHostsResolver._readlinesÊ   sÒ   € ð	Ý�d”j $Ñ'Ô'ð "¨2ØŸš™	œ	�ð"ð "ð "ñ "ô "ð "ð "ð "ð "ð "ð "øøøð "ð "ð "ð "øøåð 	ð 	ð 	ØˆIˆIˆIð	øøøð —’ H�Ñ-Ô-ˆå�d˜DœM×1Ò1°%Ñ8Ô8Ñ9Ô9Ð9s-   ‚A —8¬A ¸<¼A ¿<Á A ÁAÁAc                 óª  — |                       ¦   «         }| j                             ¦   «          | j                             ¦   «          | j                             ¦   «          |D ]Ø}|                     ¦   «         }t          |¦  «        dk     rŒ*|                     d¦  «        }t          |¦  «        r| j        }n.t          |¦  «        r| 
                    d¦  «        rŒ{| j        }nŒ„|                     d¦  «                             ¦   «         }|||<   |D ]%}|                     ¦   «         }|||<   || j        |<   Œ&ŒÙt          j        ¦   «         | _        dS )zjLoad hosts file

        This will unconditionally (re)load the data from the hosts
        file.
        é   r   Úfe80N)ro   rW   ÚclearrX   rY   r/   ÚlenÚpopr+   r1   Ú
startswithÚlowerr   r_   )rJ   ÚlinesÚlineÚpartsÚipÚipmapÚcnameÚaliass           r   r`   zHostsResolver._loadÜ   sD  € ð —’Ñ!Ô!ˆØŒ�ŠÑÔÐØŒ�ŠÑÔÐØŒ×ÒÑÔÐØð 	-ð 	-ˆDØ—J’J‘L”LˆEÝ�5‰zŒz˜AŠ~ˆ~ØØ—’˜1‘”ˆBÝ˜BÑÔð Øœ��Ý˜bÑ!Ô!ð Ø—=’= Ñ(Ô(ð àØœ��àØ—I’I˜a‘L”L×&Ò&Ñ(Ô(ˆEØˆE�%‰LØð -ð -�ØŸš™œ�Ø!��e‘Ø',�”˜eÑ$Ð$ð-õ œ)™+œ+ˆŒˆˆr   FTc           	      ó  — t          j         ¦   «         }| j        | j        z   |k     r|                      ¦   «          t          j        j        }t          |t          ¦  «        r"|}t          j	         
                    |¦  «        }nYt          |t          ¦  «        r5|                     d¦  «        }t          j	         
                    |¦  «        }nt          |¦  «        }|                     ¦   «         }t          j                             |||¦  «        }	| j        | j        z   |z
  |	_        |t          j        j        k    r©|t          j        j        k    r”| j                             |¦  «        }
|
s6|                     ¦   «         r"| j                             |dd…         ¦  «        }
|
r>|	                     t          j        j        j                             |||
¦  «        ¦  «         �n–|t          j        j        k    r¨|t          j        j        k    r“| j                             |¦  «        }
|
s6|                     ¦   «         r"| j                             |dd…         ¦  «        }
|
r>|	                     t          j        j        j                             |||
¦  «        ¦  «         nÙ|t          j        j        k    rÄ|t          j        j        k    r¯| j                             |¦  «        }|s6|                     ¦   «         r"| j                             |dd…         ¦  «        }|r[|	                     t          j        j        j                             ||t          j	         
                    |¦  «        ¦  «        ¦  «         t;          ||||	|¦  «        S )aY  Query the hosts file

        The known rdtypes are dns.rdatatype.A, dns.rdatatype.AAAA and
        dns.rdatatype.CNAME.

        The ``rdclass`` parameter must be dns.rdataclass.IN while the
        ``tcp`` and ``source`` parameters are ignored.

        Return a HostAnswer instance or raise a dns.resolver.NoAnswer
        exception.
        ÚasciiNéÿÿÿÿ)r   r_   rZ   r`   r   Ú
rdataclassÚINr#   r$   r\   Ú	from_textÚbytesrh   rw   rG   ÚRRsetr?   Ú	rdatatypeÚArW   ÚgetÚis_absoluteÚaddr   ÚAAAArX   ÚCNAMErY   ÚANYr=   )rJ   rA   rB   rC   ÚtcpÚsourcerK   Únowr\   rG   Úaddrr}   s               r   r7   zHostsResolver.queryü   sö  € õ Œi‰kŒkˆØŒ?˜Tœ]Ñ*¨SÒ0Ð0Ø�JŠJ‰LŒLˆLÝ”.Ô#ˆÝ�e�SÑ!Ô!ð 	ØˆDÝ”H×&Ò& uÑ-Ô-ˆEˆEÝ˜�uÑ%Ô%ð 	Ø—<’< Ñ(Ô(ˆDÝ”H×&Ò& uÑ-Ô-ˆEˆEå�u‘:”:ˆDØ�zŠz‰|Œ|ˆÝ”	—’  w°Ñ7Ô7ˆØ”O d¤mÑ3°cÑ9ˆŒ	Ø•c”nÔ'Ò'Ð'¨Fµc´m´oÒ,EÐ,EØ”8—<’< Ñ%Ô%ˆDØð /˜E×-Ò-Ñ/Ô/ð /Ø”x—|’| D¨¨"¨¤IÑ.Ô.�Øð EØ—	’	�#œ+œ.Ô*×,Ò,¨W°f¸dÑCÔCÑDÔDÐDùØ�œÔ)Ò)Ð)¨f½¼Ô8JÒ.JÐ.JØ”8—<’< Ñ%Ô%ˆDØð /˜E×-Ò-Ñ/Ô/ð /Ø”x—|’| D¨¨"¨¤IÑ.Ô.�Øð KØ—	’	�#œ+œ.Ô-×2Ò2°7¸FÀDÑIÔIÑJÔJÐJøØ�œÔ)Ò)Ð)¨f½¼Ô8KÒ.KÐ.KØ”M×%Ò% dÑ+Ô+ˆEØð 5˜U×.Ò.Ñ0Ô0ð 5Øœ×)Ò)¨$¨s°¨s¬)Ñ4Ô4�Øð AØ—	’	�#œ+œ/Ô/×5Ò5Ø˜V¥S¤X×%7Ò%7¸Ñ%>Ô%>ñ@ô @ñ Aô Að Aå˜5 &¨'°5Ð:LÑMÔMÐMr   c                 ó  — g }|| j         v r| j         |         }n|}|                     |¦  «         | j                              ¦   «         D ] \  }}||k    r|                     |¦  «         Œ!|                     |¦  «         |S )z1Return a list of all the aliases of a given cname)rY   ÚappendÚitemsÚremove)rJ   ÚhostnameÚaliasesÚcannonr~   r}   s         r   Ú
getaliaseszHostsResolver.getaliases-  s�   € ð
 ˆØ�t”}Ð$Ð$Ø”] 8Ô,ˆFˆFàˆFØ�Š�vÑÔÐØ œM×/Ò/Ñ1Ô1ð 	&ð 	&‰LˆE�5Ø˜ŠˆØ—’˜uÑ%Ô%Ð%øØ�Š�xÑ Ô Ð Øˆr   )rM   rN   rO   rP   ÚreÚcompileÚVERBOSErj   Ú	HOSTS_TTLrL   ro   r`   r   r‡   rˆ   r‚   rƒ   r7   rš   rQ   r   r   rS   rS   ¨   s¸   € € € € € ðð ð ˆrŒzð ð 
Œñô €Hð "¨Ið ð ð ð ð :ð :ð :ð$&ð &ð &ð@ #&¤-¤/¸3¼>Ô;LØ ¸ð/Nð /Nð /Nð /Nðbð ð ð ð r   rS   c                   óÆ   — e Zd ZdZdd„Zed„ ¦   «         Zej        d„ ¦   «         Zd„ Ze	j
        j        e	j        j        ddd	e	j
        j        e	j
        j        fd	fd
„Zd„ ZdS )ÚResolverProxyz�Resolver class which can also use /etc/hosts

    Initialise with a HostsResolver instance in order for it to also
    use the hosts file.
    Nú/etc/resolv.confc                 ó0   — || _         || _        d| _        dS )ah  Initialise the resolver proxy

        :param hosts_resolver: An instance of HostsResolver to use.

        :param filename: The filename containing the resolver
           configuration.  The default value is correct for both UNIX
           and Windows, on Windows it will result in the configuration
           being read from the Windows registry.
        N)Ú_hostsÚ	_filenameÚ_cached_resolver)rJ   Úhosts_resolverÚfilenames      r   rL   zResolverProxy.__init__F  s"   € ð %ˆŒØ!ˆŒð
 !%ˆÔÐÐr   c                 óF   — | j         €|                      ¦   «          | j         S r   )r¥   rs   ©rJ   s    r   Ú	_resolverzResolverProxy._resolverX  s!   € àÔ Ð(Ø�JŠJ‰LŒLˆLØÔ$Ð$r   c                 ó   — || _         d S r   )r¥   )rJ   Úvalues     r   rª   zResolverProxy._resolver^  s   € à %ˆÔÐÐr   c                 óª   — t           j                             | j        ¬¦  «        | _        t           j                             ¦   «         | j        _        d S )N)r§   )r   rE   ÚResolverr¤   rª   ÚLRUCacheÚcacher©   s    r   rs   zResolverProxy.clearb  s<   € Ýœ×.Ò.¸¼Ð.ÑGÔGˆŒÝ"œ|×4Ò4Ñ6Ô6ˆŒÔÐÐr   FTc	           	      ó\  ‡‡‡— g d¢Š‰€dŠt          ‰t          ¦  «        st          ‰t          ¦  «        r t          j                             ‰d¦  «        Šˆfd„}	ˆˆˆfd„}
| j        rN|t          j        j        k    r9||v r5 |	| j        j	        ‰|d¬¦  «        r‰d         €
‰d	         €|s
 |
¦   «         S  |	| j
        j	        ‰||||d¬¦  «         t          ‰¦  «        d	k    r> |	| j
        j	        ‰                     t          j        j        ¦  «        ||||d¬¦  «          |
¦   «         S )
aP  Query the resolver, using /etc/hosts if enabled.

        Behavior:
        1. if hosts is enabled and contains answer, return it now
        2. query nameservers for qname if use_network is True
        3. if qname did not contain dots, pretend it was top-level domain,
           query "foobar." and append to previous result
        )NNr   Nz0.0.0.0c                 ó6  •— 	  | |i |¤Ž}n# t           $ r}|‰d<   Y d }~dS d }~ww xY w|j        �it          |j        ¦  «        rU‰d         €|‰d<   n%‰d         j                             |j        ¦  «         ‰dxx         t          |j        ¦  «        z  cc<   dS )Nr.   Fr   rq   T)Ú	ExceptionrG   rt   Úunion_update)Úfunr   ÚkwargsÚaÚeÚresults        €r   Ústepz!ResolverProxy.query.<locals>.stepy  s¾   ø€ ðØ�C˜Ð( Ð(Ð(��øÝð ð ð Ø��q‘	Ø�u�u�u�u�uøøøøðøøøð ŒwÐ"¥s¨1¬7¡|¤|Ð"Ø˜!”9Ð$Ø !�F˜1‘I�Ià˜1”I”O×0Ò0°´Ñ9Ô9Ð9Ø�q�	�	”	�S ¤™\œ\Ñ)�	�	‘	Ø�4s   ƒ Œ
&–!¡&c                  ó  •— ‰d         �'‰r‰d         dk    rt           j        j        ‚‰d         S ‰d         �/‰s%t          ‰d         t           j        j        ¦  «        s‰d         ‚t           j                             ‰ f¬¦  «        ‚)Nr   rq   r.   )Úqnames)r   rE   rF   r#   ÚNXDOMAIN)rA   rK   r¹   s   €€€r   Úendz ResolverProxy.query.<locals>.end‡  s†   ø€ Ø�aŒyÐ$Ø%ð 0¨&°¬)°qª.¨.Ýœ,Ô/Ð/Ø˜a”yÐ Ø�aŒyÐ$Ø%ð $­Z¸¸q¼	Å3Ä<ÔCXÑ-YÔ-Yð $Ø  œ)�OÝ”,×'Ò'°¨xÐ'Ñ8Ô8Ð8r   F)rK   r   r.   )r#   r$   r…   r   r\   r„   r£   r‚   rƒ   r7   rª   rt   ÚconcatenateÚroot)rJ   rA   rB   rC   r�   r�   rK   Ú_hosts_rdtypesÚuse_networkrº   r¾   r¹   s    `    `    @r   r7   zResolverProxy.queryf  s€  øøø€ ð !��ˆàˆ=ØˆEÝ�e�SÑ!Ô!ð 	4¥Z°µuÑ%=Ô%=ð 	4Ý”H×&Ò& u¨dÑ3Ô3ˆEð	ð 	ð 	ð 	ð 	ð	9ð 	9ð 	9ð 	9ð 	9ð 	9ð 	9ð ŒKð 	!˜W­¬Ô(9Ò9Ð9ÀÈ.Ð@XÐ@XØˆt�D”KÔ% u¨fÈÐOÑOÔOð !Ø˜1”IÐ)¨v°a¬yÐ/DÈkÐ/DØ˜3™5œ5�Lð 	ˆˆTŒ^Ô! 5¨&°'¸3ÀÐ[`ÐaÑaÔaÐaõ ˆu‰:Œ:˜Š?ˆ?ØˆD�”Ô% u×'8Ò'8½¼¼Ñ'GÔ'GØ˜ # vÀ%ðIñ Iô Ið Ið ˆs‰uŒuˆr   c                 ób  — | j         r| j                              |¦  «        }ng }	 	 | j                             |t          j        j        ¦  «        }|                     d„ |j        D ¦   «         ¦  «         |d         j	        }n+# t          j
        j        t          j
        j        f$ r Y nw xY wŒ‰|S )z4Return a list of all the aliases of a given hostnameTc              3   ó>   K  — | ]}t          |j        ¦  «        V — Œd S r   )r$   Útarget©Ú.0Úrrs     r   ú	<genexpr>z+ResolverProxy.getaliases.<locals>.<genexpr>±  s*   è è € ÐBÐB°"�s 2¤9™~œ~ÐBÐBÐBÐBÐBÐBr   r   )r£   rš   rª   r7   r   r‡   r�   ÚextendrG   rÅ   rE   rF   r½   )rJ   r—   r˜   Úanss       r   rš   zResolverProxy.getaliases¥  s½   € àŒ;ð 	Ø”k×,Ò,¨XÑ6Ô6ˆGˆGàˆGð	)ð)Ø”n×*Ò*¨8µS´]Ô5HÑIÔI�ð —’ÐBÐB¸¼	ÐBÑBÔBÑBÔBÐBØ˜qœ6œ=��øõ	 ”LÔ)­3¬<Ô+@ÐAð ð ð Ø�ðøøøð	)ð ˆs   §*B Â%B+Â*B+)Nr¡   )rM   rN   rO   rP   rL   Úpropertyrª   Úsetterrs   r   r‡   rˆ   r‚   rƒ   rŒ   r7   rš   rQ   r   r   r    r    ?  sÊ   € € € € € ðð ð%ð %ð %ð %ð$ ð%ð %ñ „Xð%ð
 Ôð&ð &ñ Ôð&ð7ð 7ð 7ð #&¤-¤/¸3¼>Ô;LØ ¸Ø!œmœo¨s¬}Ô/AÐBØð=ð =ð =ð =ð~ð ð ð ð r   r    )r¦   Tc                 ó†  — |t           j        k    rt          j        j        }nG|t           j        k    rt          j        j        }n%t                                t           j        d¦  «        ‚|€t          }	 	 | 
                    | |||¬¦  «        S # t          j	        j        $ rE |sAt          t          j                             | ¦  «        |t          j        j        dd¦  «        cY S ‚ w xY w# t          j        j        $ r t'          t(          ¦  «         Y dS t          j        j        $ r t'          t,          ¦  «         Y dS w xY w)a8  Resolve a name for a given family using the global resolver proxy.

    This method is called by the global getaddrinfo() function. If use_network
    is False, only resolution via hosts file will be performed.

    Return a dns.resolver.Answer instance.  If there is no answer it's
    rrset will be emtpy.
    zAddress family not supportedN)rK   rÂ   F)r
   ÚAF_INETr   r‡   rˆ   ÚAF_INET6rŒ   ÚgaierrorÚ
EAI_FAMILYrE   r7   r½   r=   r\   ÚNamer‚   rƒ   r'   ÚTimeoutr!   ÚEAI_EAGAIN_ERRORÚDNSExceptionÚEAI_NODATA_ERROR)r\   ÚfamilyÚraisesÚ_proxyrÂ   rB   s         r   ÚresolverÛ   ¹  sa  € ð •”ÒÐÝ””ˆˆØ	•6”?Ò	"Ð	"Ý”Ô#ˆˆå�oŠo�fÔ/Ø<ñ>ô >ð 	>ð €~Ýˆð+ð	Ø—<’<  fÀØ,7ð  ñ 9ô 9ð 9øåŒ|Ô$ð 	ð 	ð 	Øð KÝ"¥3¤8§=¢=°Ñ#6Ô#6Ø#)­3¬>Ô+<¸dÀEñKô Kð Kð Kð Kàð		øøøøõ
 Œ=Ô ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ÝŒ=Ô%ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ð+øøøs1   Á5B ÂAC'Ã#C* Ã%C'Ã'C* Ã*(E Ä'E Ä?E c                 ól  — 	 t                                | t          j        j        ¦  «        }t          |d         j        ¦  «        S # t          j         j        $ r | cY S t          j        j	        $ r t          t          ¦  «         Y dS t          j        j        $ r t          t          ¦  «         Y dS w xY w)z'Return the canonical name of a hostnamer   N)rE   r7   r   r‡   r�   r$   rÅ   rF   r'   rÔ   r!   rÕ   rÖ   r×   )r*   rË   s     r   Úresolve_cnamerÝ   Ü  s¾   € ð	"Ý�nŠn˜T¥3¤=Ô#6Ñ7Ô7ˆõ �3�q”6”=Ñ!Ô!Ð!øõ Œ<Ô ð ð ð ØˆˆˆÝŒ=Ô ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ÝŒ=Ô%ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ð+øøøs   ‚*A ÁB3Á'B3Â'B3Â2B3c                 óê   — 	 t                                | ¦  «        S # t          j        j        $ r t          t          ¦  «         Y dS t          j        j        $ r t          t          ¦  «         Y dS w xY w)z×Return a list of for aliases for the given hostname

    This method does translate the dnspython exceptions into
    socket.gaierror exceptions.  If no aliases are available an empty
    list will be returned.
    N)	rE   rš   r   r'   rÔ   r!   rÕ   rÖ   r×   r)   s    r   rš   rš   ê  s‚   € ð+Ý×"Ò" 4Ñ(Ô(Ð(øÝŒ=Ô ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ÝŒ=Ô%ð +ð +ð +ÝÕ)Ñ*Ô*Ð*Ð*Ð*Ð*ð+øøøs   ‚ œ(A2Á'A2Á1A2c                 ó‚  — |t           j        z  rt          t          ¦  «         g }|t           j        k    rµd}dD ]©}t           j        t           j        fD ]Š}	 t          | |d|¬¦  «        }|j        r$| 	                    d„ |j        D ¦   «         ¦  «         ŒB# t           j
        $ r7}|j        t           j        t          j        t          j        fvr‚ |}Y d}~Œƒd}~ww xY w|r nŒª|�|s|‚nÀ|t           j        k    r‡|t           j        z  rxt          | t           j        d¦  «        }|j        rd„ |j        D ¦   «         }|r|t           j        z  r3t          | t           j        d¦  «        }|j        rd„ |j        D ¦   «         }n)t          | |d¦  «        }|j        rd„ |j        D ¦   «         }t!          |j        ¦  «        |fS )	zTResolve a hostname to a list of addresses

    Helper function for getaddrinfo.
    N)FTF)rÂ   c              3   ó$   K  — | ]}|j         V — Œd S r   ©ÚaddressrÆ   s     r   rÉ   z&_getaddrinfo_lookup.<locals>.<genexpr>  s$   è è € Ð$GÐ$G°B R¤ZÐ$GÐ$GÐ$GÐ$GÐ$GÐ$Gr   c                 ó   — g | ]	}|j         ‘Œ
S rQ   rá   rÆ   s     r   ú
<listcomp>z'_getaddrinfo_lookup.<locals>.<listcomp>  ó   € Ð7Ð7Ð7 B�R”ZÐ7Ð7Ð7r   c                 ó"   — g | ]}d |j         z   ‘ŒS )z::ffff:rá   rÆ   s     r   rä   z'_getaddrinfo_lookup.<locals>.<listcomp>  s   € ÐGÐGÐG°B˜ R¤ZÑ/ÐGÐGÐGr   c                 ó   — g | ]	}|j         ‘Œ
S rQ   rá   rÆ   s     r   rä   z'_getaddrinfo_lookup.<locals>.<listcomp>  rå   r   )r
   ÚAI_NUMERICHOSTr!   ÚEAI_NONAME_ERRORÚ	AF_UNSPECrÐ   rÏ   rÛ   rG   rÊ   rÑ   ÚerrnoÚ	EAI_AGAINr×   ÚAI_V4MAPPEDÚAI_ALLr$   rA   )	r*   rØ   ÚflagsÚaddrsÚerrrÂ   ÚqfamilyÚanswerr¸   s	            r   Ú_getaddrinfo_lookuprô   ù  s  € ð
 �vÔ$Ñ$ð +ÝÕ)Ñ*Ô*Ð*Ø€EØ•Ô!Ò!Ð!ØˆØ(ð 	ð 	ˆKÝ"œO­V¬^Ð<ð 	Hð 	H�ðHÝ$ T¨7°EÀ{ÐSÑSÔS�Fð ”|ð HØŸšÐ$GÐ$G¸&¼,Ð$GÑ$GÔ$GÑGÔGÐGøøõ ”ð ð ð Ø”w¥vÔ'7Õ9IÔ9OÕQaÔQgÐ&hÐhÐhØØ�C�C�C�C�C�Cøøøøðøøøð ð Ø�ðàˆ? 5ˆ?ØˆIøØ	•6”?Ò	"Ð	" u­vÔ/AÑ'AÐ	"Ý˜�vœ°Ñ6Ô6ˆØŒ<ð 	8Ø7Ð7¨&¬,Ð7Ñ7Ô7ˆEØð 	H˜¥¤Ñ-ð 	HÝ˜T¥6¤>°5Ñ9Ô9ˆFØŒ|ð HØGÐG¸&¼,ÐGÑGÔG�øå˜˜v uÑ-Ô-ˆØŒ<ð 	8Ø7Ð7¨&¬,Ð7Ñ7Ô7ˆEÝˆvŒ|ÑÔ˜eÐ#Ð#s   ÁBÂCÂ%-CÃCc           	      óŠ  — t          | t          ¦  «        r)|                      d¦  «                             d¦  «        } n*t          | t          ¦  «        r|                      d¦  «        } | �$t          | ¦  «        st          | ||¦  «        \  }}n| }| g}|t          j        z  dt          j	        z  z  }g }	d}
|D ]a}	 t           
                    ||||||¦  «        }n)# t          $ r}|t          j        z  r|}
Y d}~ŒC‚ d}~ww xY w|	                     |¦  «         Œb|	s)|
r|
‚t                               t          j        d¦  «        ‚|t          j	        z  rnt          |¦  «        s5t!          |¦  «                             d¦  «                             d¦  «        }|	d         }|d         |d         |d         ||d	         f|	d<   |	S )
aC  Replacement for Python's socket.getaddrinfo

    This does the A and AAAA lookups asynchronously after which it
    calls the OS' getaddrinfo(3) using the AI_NUMERICHOST flag.  This
    flag ensures getaddrinfo(3) does not use the network itself and
    allows us to respect all the other arguments like the native OS.
    Úidnar€   Néÿÿ  zNo address foundr   r.   rq   é   )r#   r$   Úencoderh   r…   r3   rô   r
   rè   ÚAI_CANONNAMEÚgetaddrinforg   ÚAI_ADDRCONFIGrÊ   rÑ   Ú
EAI_NONAMErÝ   )r*   ÚportrØ   ÚtypeÚprotorï   rA   rð   ÚaiflagsÚresrñ   r’   Úair¸   s                 r   rû   rû   !  së  € õ �$�ÑÔð $Ø�{Š{˜6Ñ"Ô"×)Ò)¨'Ñ2Ô2ˆˆÝ	�D�%Ñ	 Ô	 ð $Ø�{Š{˜7Ñ#Ô#ˆØÐ¥
¨4Ñ 0Ô 0ÐÝ*¨4°¸Ñ?Ô?‰ˆˆuˆuàˆØ�ˆØ•vÔ,Ñ,°½&Ô:MÑ1MÑN€GØ
€CØ
€CØð 	ð 	ˆð	Ý×#Ò# D¨$°Ø$(¨%°ñ:ô :ˆBˆBøåð 	ð 	ð 	Ø•vÔ+Ñ+ð Ø�Ø����Øøøøøð		øøøð
 	�
Š
�2‰ŒˆˆØð EØð 	ØˆIÝ�oŠo�fÔ/Ð1CÑDÔDÐDØ�vÔ"Ñ"ð 5Ý˜%Ñ Ô ð 	HÝ! %Ñ(Ô(×/Ò/°Ñ8Ô8×?Ò?ÀÑGÔGˆEØ�ŒVˆØ�Q”%˜˜Aœ  1¤ u¨b°¬eÐ4ˆˆA‰Ø€Js   Â<CÃ
DÃ&C=Ã<C=Ã=Dc                 ó\   — t          | ¦  «        r| S t          | ¦  «        }|d         j        S )z-Replacement for Python's socket.gethostbynamer   )r+   rÛ   râ   )r—   rG   s     r   Úgethostbynamer  K  s1   € å�HÑÔð ØˆÝ�HÑÔ€EØ�Œ8ÔÐr   c                 óè   — t          | ¦  «        r| g | gfS t          | ¦  «        }t          | ¦  «        }d„ |j        D ¦   «         }t	          |j        ¦  «        }|d         dk    r
|dd…         }|||fS )z0Replacement for Python's socket.gethostbyname_exc                 ó   — g | ]	}|j         ‘Œ
S rQ   rá   rÆ   s     r   rä   z$gethostbyname_ex.<locals>.<listcomp>Y  s   € Ð,Ð,Ð,˜BˆRŒZÐ,Ð,Ð,r   r�   ú.N)r+   rÛ   rš   rG   r$   rA   )r—   rË   r˜   rð   rA   s        r   Úgethostbyname_exr	  S  s†   € å�HÑÔð *Ø˜"˜x˜jÐ)Ð)Ý
�(Ñ
Ô
€CÝ˜Ñ"Ô"€GØ,Ð, #¤)Ð,Ñ,Ô,€EÝ�”	‰NŒN€EØˆR„y�CÒÐØ�c�r�c”
ˆØ�7˜EÐ"Ð"r   c                 ó@  — 	 | \  }}nP# t           t          f$ r< t          | t          ¦  «        s~ t          d¦  «        ‚t	          t
          ¦  «         Y nw xY w|t          j        z  r#|t          j        z  rt	          t
          ¦  «         t          |¦  «        �r	 t                               t          j                             |¦  «        t          j        j        ¦  «        }t#          |¦  «        dk    rt%          d¦  «        ‚|d         j                             d¬¦  «        }�nu# t          j        j        $ r' |t          j        z  rt	          t.          ¦  «         Y �n;t          j        j        $ r' |t          j        z  rt	          t
          ¦  «         Y �nw xY w	 t                               |¦  «        }t#          |¦  «        dk    rt%          d¦  «        ‚|t          j        z  r|d         j        }ng# t          j        j        $ r t	          t.          ¦  «         Y n=t          j        j        $ r' t                               t          j        df¦  «        ‚w xY w|t          j        z  s.|t          j        z  rdpd	}t                               ||¦  «        }||fS )
zTReplacement for Python's socket.getnameinfo.

    Currently only supports IPv4.
    z(getnameinfo() argument 1 must be a tupler.   z'sockaddr resolved to multiple addressesr   T)Úomit_final_dotr   Úudpr�   )Ú
ValueErrorÚ	TypeErrorr#   Útupler!   ré   r
   ÚNI_NAMEREQDÚNI_NUMERICHOSTr+   rE   r7   r   ÚreversenameÚfrom_addressr‡   ÚPTRrt   rg   rÅ   Úto_textr'   rÔ   rÕ   rÖ   râ   rÑ   r   ÚNI_NUMERICSERVÚNI_DGRAMÚgetservbyport)Úsockaddrrï   r*   rþ   rG   r   s         r   Úgetnameinfor  `  s¤  € ð
	/Ø‰
ˆˆdˆdøÝ�	Ð"ð /ð /ð /Ý˜(¥EÑ*Ô*ð 	/ØåÐFÑGÔGÐGõ Õ-Ñ.Ô.Ð.Ð.Ð.ð/øøøð 	•Ô"Ñ"ð +¨µÔ1FÑ)Fð +åÕ)Ñ*Ô*Ð*å�DÑÔñ 5ð	3Ý—N’NÝ”×,Ò,¨TÑ2Ô2µC´MÔ4EñGô GˆEå�5‰zŒz˜AŠ~ˆ~ÝÐGÑHÔHÐHØ˜”8”?×*Ò*¸$Ð*Ñ?Ô?ˆD‰DøÝŒ}Ô$ð 	3ð 	3ð 	3Ø•vÔ)Ñ)ð 3Ý Õ!1Ñ2Ô2Ð2øùÝŒ}Ô)ð 	3ð 	3ð 	3Ø•vÔ)Ñ)ð 3Ý Õ!1Ñ2Ô2Ð2øùð	3øøøð
	LÝ—N’N 4Ñ(Ô(ˆEÝ�5‰zŒz˜AŠ~ˆ~ÝÐGÑHÔHÐHØ•vÔ,Ñ,ð (Ø˜Q”xÔ'�øøÝŒ}Ô$ð 	/ð 	/ð 	/ÝÕ-Ñ.Ô.Ð.Ð.Ð.ÝŒ}Ô)ð 	Lð 	Lð 	LÝ—/’/ÝÔ"Ð$IÐJñLô Lð Lð	Løøøð �Ô-Ñ-ð 	5Ø�Vœ_Ñ,Ð7°%Ð@¸5ˆEÝ×'Ò'¨¨eÑ4Ô4ˆDà�$ˆ<Ðs<   ‚ ˆA
AÁAÂB
D' Ä'7FÅ!6FÆFÆAG8 Ç8(IÈ":Ic                 óX  — t          ¦   «         }|dk    r•	 |                      |¦  «        }nT# t          j        $ rB |t	          j        ¦   «         z
  dk    rt
          j        j        ‚t          j	        d¦  «         Y Œmw xY w|dk    rt          ‚|t          |¦  «        z
  }||z  }|dk    °•|S )a  coro friendly replacement for dns.query._net_read
    Read the specified number of bytes from sock.  Keep trying until we
    either get the desired amount, or we hit EOF.
    A Timeout exception will be raised if the operation is not completed
    by the expiration time.
    r   ç        ç{®Gáz„?r   )Ú	bytearrayÚrecvr
   r8   r   r   r'   rÔ   ÚeventletÚsleepÚEOFErrorrt   )ÚsockÚcountrI   ÚsÚns        r   Ú	_net_readr'  •  s»   € õ 	‰Œ€AØ
�!Š)ˆ)ð	Ø—	’	˜%Ñ Ô ˆAˆAøÝŒ~ð 	ð 	ð 	à�DœI™KœKÑ'¨3Ò.Ð.Ý”mÔ+Ð+ÝŒN˜4Ñ Ô Ð ØˆHð	øøøð �Š8ˆ8ÝˆNØ�˜A™œ‘ˆØ	ˆQ‰ˆð �!Š)ˆ)ð €Hs   –, ¬AA=Á<A=c                 ó  — d}t          |¦  «        }||k     rj	 ||                      ||d…         ¦  «        z  }n@# t          j        $ r. |t	          j        ¦   «         z
  dk    rt
          j        j        ‚Y nw xY w||k     °hdS dS )zÈcoro friendly replacement for dns.query._net_write
    Write the specified data to the socket.
    A Timeout exception will be raised if the operation is not completed
    by the expiration time.
    r   Nr  )rt   Úsendr
   r8   r   r   r'   rÔ   )r#  ÚdatarI   ÚcurrentÚls        r   Ú
_net_writer-  ­  s›   € ð €GÝˆD‰	Œ	€AØ
�AŠ+ˆ+ð	,Ø�t—y’y  g h h¤Ñ0Ô0Ñ0ˆGˆGøÝŒ~ð 	,ð 	,ð 	,à�DœI™KœKÑ'¨3Ò.Ð.Ý”mÔ+Ð+ð /Ð.ð	,øøøð �AŠ+ˆ+ˆ+ˆ+ˆ+ˆ+s   ™ : º:A7Á6A7)Úraise_on_truncationFé5   c                 ó  — |                       ¦   «         }|€9	 t          j                             |¦  «        }n#  t          j        j        }Y nxY w|t          j        j        k    r||f}|�||f}n_|t          j        j        k    rJt          j                             t          j                             |¦  «        ¦  «        }||ddf}|�||ddf}|r|}n%t           	                    |t          j
        ¦  «        }|                     |¦  «         	 t          t          j        |¦  «        }|�|                     |¦  «         	 	 |                     ||¦  «         nT# t          j        $ rB |t#          j        ¦   «         z
  dk    rt          j        j        ‚t)          j        d¦  «         Y Œiw xY wd}	 |r+|t#          j        ¦   «         z
  dk    rt          j        j        ‚|rt)          j        d¦  «         d}	 |                     d¦  «        \  }}n# t          j        $ r Y Œqw xY wt          j                             |d         ¦  «        t          j        j        k    r\|d         }t          j                             t          j                             |¦  «        ¦  «        }||d         |d	         |d
         f}||k    r)|r�Œt          j                             d|›d|›�¦  «        ‚	 t0          r0t          j                             || j        | j        ||	|
¬¦  «        }n.t          j                             || j        | j        ||	¬¦  «        }|                      |¦  «        st          j                             ¦   «         ‚n[# t          j        j        $ r5}|r-|                      |                     ¦   «         ¦  «        sY d}~�Œ‚ d}~wt@          $ r |rY �Œ(‚ w xY w	 | !                    ¦   «          n# | !                    ¦   «          w xY w|S )aX  coro friendly replacement for dns.query.udp
    Return the response obtained after sending a query via UDP.

    @param q: the query
    @type q: dns.message.Message
    @param where: where to send the message
    @type where: string containing an IPv4 or IPv6 address
    @param timeout: The number of seconds to wait before the query times out.
    If None, the default, wait forever.
    @type timeout: float
    @param port: The port to which to send the message.  The default is 53.
    @type port: int
    @param af: the address family to use.  The default is None, which
    causes the address family to use to be inferred from the form of of where.
    If the inference attempt fails, AF_INET is used.
    @type af: int
    @rtype: dns.message.Message object
    @param source: source address.  The default is the IPv4 wildcard address.
    @type source: string
    @param source_port: The port from which to send the message.
    The default is 0.
    @type source_port: int
    @param ignore_unexpected: If True, ignore responses from unexpected
    sources.  The default is False.
    @type ignore_unexpected: bool
    @param one_rr_per_rrset: If True, put each RR into its own
    RRset.
    @type one_rr_per_rrset: bool
    @param ignore_trailing: If True, ignore trailing
    junk at end of the received message.
    @type ignore_trailing: bool
    @param raise_on_truncation: If True, raise an exception if
    the TC bit is set.
    @type raise_on_truncation: bool
    @param sock: the socket to use for the
    query.  If None, the default, a socket is created.  Note that
    if a socket is provided, it must be a nonblocking datagram socket,
    and the source and source_port are ignored.
    @type sock: socket.socket | None
    @param ignore_errors: if various format errors or response mismatches occur,
    continue listening.
    @type ignore_errors: boolNr   Tr  r  Fr÷   r.   rq   é   zgot a response from z instead of )ÚkeyringÚrequest_macÚone_rr_per_rrsetÚignore_trailingr.  ©r2  r3  r4  r5  )"Úto_wirer   ÚinetÚaf_for_addressrÏ   rÐ   r0   Ú	inet_ntoar&   r
   Ú
SOCK_DGRAMÚ
settimeoutr9   r7   ÚbindÚsendtor8   r   r'   rÔ   r   r!  ÚrecvfromÚUnexpectedSourceÚ_handle_raise_on_truncationÚmessageÚ	from_wirer2  ÚmacÚis_responseÚBadResponseÚ	Truncatedr³   Úclose)ÚqÚwherer8   rþ   Úafr�   Úsource_portÚignore_unexpectedr4  r5  r.  r#  Úignore_errorsÚwireÚdestinationÚwhere_truncr%  rI   Útriedr  r’   Úrr¸   s                          r   r  r  É  s0  € ð^ �9Š9‰;Œ;€DØ	€zð	"Ý”×(Ò(¨Ñ/Ô/ˆBˆBøð	"Ý”Ô!ˆBˆBˆBøøøØ	�SŒXÔÒÐØ˜d�mˆØÐØ˜kÐ*ˆFøØ	�sŒxÔ Ò	 Ð	 õ
 ”h×(Ò(­¬×);Ò);¸EÑ)BÔ)BÑCÔCˆØ" D¨!¨QÐ/ˆØÐØ˜k¨1¨aÐ0ˆFàð 1Øˆˆå�MŠM˜"�fÔ/Ñ0Ô0ˆØ‡L‚L�ÑÔÐðHÝ'­¬	°7Ñ;Ô;ˆ
ØÐØ�FŠF�6‰NŒNˆNð		ðØ—’˜˜{Ñ+Ô+Ð+ØøÝ”>ð ð ð à¥¤	¡¤Ñ+¨sÒ2Ð2Ýœ-Ô/Ð/Ý”˜tÑ$Ô$Ð$Ø�ðøøøð ˆð6	ð ð ,˜*¥t¤y¡{¤{Ñ2°cÒ9Ð9Ý”mÔ+Ð+ð ð %Ý”˜tÑ$Ô$Ð$ØˆEðØ'(§z¢z°%Ñ'8Ô'8Ñ$��|�|øÝ”>ð ð ð à�ðøøøõ Œx×&Ò& |°A¤Ñ7Ô7½3¼8Ô;LÒLÐLà# A”�Ý”x×)Ò)­#¬(×*<Ò*<¸TÑ*BÔ*BÑCÔC�Ø $ l°1¤o°|ÀA´ÈÐUVÌÐX�Ø˜{Ò*Ð*Ø$ð 7Ùåœ)×4Ò4Ð4à'˜<˜<¨¨ð6ñ7ô 7ð 7ðÝ.ð OÝœ×-Ò-¨dØ67´iØ:;¼%Ø?OØ>MØBUð .ñ Wô W�A�Aõ œ×-Ò-¨dØ67´iØ:;¼%Ø?OØ>Mð	 .ñ Oô O�Að
 —}’} QÑ'Ô'ð 2Ýœ)×/Ò/Ñ1Ô1Ð1ØøÝ”;Ô(ð ð ð Ø ð ¨¯ª°q·y²y±{´{Ñ)CÔ)Cð Ø�H�H�H‘HàøøøøÝð ð ð Ø ð Ø‘Hàð	øøøð ð 	
�Š‰	Œ	ˆ	ˆ	øˆ�Š‰	Œ	ˆ	ˆ	øøøà€Hs�   ˜8 ¸AÄ2O2 ÅE ÅO2 ÅAF*Æ'O2 Æ)F*Æ*AO2 Ç6H ÈO2 ÈH!ÈO2 È H!È!CO2 Ë(BN Î O2 ÎOÎ)OÎ>O2 ÏOÏOÏO2 ÏOÏO2 Ï2Pc
                 óþ  — |                       ¦   «         }
|€9	 t          j                             |¦  «        }n#  t          j        j        }Y nxY w|t          j        j        k    r||f}|�||f}n#|t          j        j        k    r||ddf}|�||ddf}|	r|	}n%t                               |t          j        ¦  «        }|                     |¦  «         	 t          t          j
        |¦  «        }|�|                     |¦  «         	 	 |                     |¦  «         nT# t          j        $ rB |t          j        ¦   «         z
  dk    rt          j        j        ‚t#          j        d¦  «         Y Œhw xY wt'          |
¦  «        }t)          j        d|¦  «        |
z   }t-          |||¦  «         t/          |d|¦  «        }t)          j        d|¦  «        \  }t3          t/          |||¦  «        ¦  «        }
|                     ¦   «          n# |                     ¦   «          w xY wt          j                             |
| j        | j        ||¬¦  «        }|                      |¦  «        st          j
                              ¦   «         ‚|S )	aò  coro friendly replacement for dns.query.tcp
    Return the response obtained after sending a query via TCP.

    @param q: the query
    @type q: dns.message.Message object
    @param where: where to send the message
    @type where: string containing an IPv4 or IPv6 address
    @param timeout: The number of seconds to wait before the query times out.
    If None, the default, wait forever.
    @type timeout: float
    @param port: The port to which to send the message.  The default is 53.
    @type port: int
    @param af: the address family to use.  The default is None, which
    causes the address family to use to be inferred from the form of of where.
    If the inference attempt fails, AF_INET is used.
    @type af: int
    @rtype: dns.message.Message object
    @param source: source address.  The default is the IPv4 wildcard address.
    @type source: string
    @param source_port: The port from which to send the message.
    The default is 0.
    @type source_port: int
    @type ignore_unexpected: bool
    @param one_rr_per_rrset: If True, put each RR into its own
    RRset.
    @type one_rr_per_rrset: bool
    @param ignore_trailing: If True, ignore trailing
    junk at end of the received message.
    @type ignore_trailing: bool
    @param sock: the socket to use for the
    query.  If None, the default, a socket is created.  Note that
    if a socket is provided, it must be a nonblocking datagram socket,
    and the source and source_port are ignored.
    @type sock: socket.socket | NoneNr   Tr  r  z!Hrq   r6  )!r7  r   r8  r9  rÏ   rÐ   r
   ÚSOCK_STREAMr<  r9   r7   r=  Úconnectr8   r   r'   rÔ   r   r!  rt   ÚstructÚpackr-  r'  Úunpackr…   rH  rB  rC  r2  rD  rE  rF  )rI  rJ  r8   rþ   rK  r�   rL  r4  r5  r#  rO  rP  r%  rI   r,  ÚtcpmsgÚldatarS  s                     r   r�   r�   ^  sj  € ðL �9Š9‰;Œ;€DØ	€zð	"Ý”×(Ò(¨Ñ/Ô/ˆBˆBøð	"Ý”Ô!ˆBˆBˆBøøøØ	�SŒXÔÒÐØ˜d�mˆØÐØ˜kÐ*ˆFøØ	�sŒxÔ Ò	 Ð	 Ø˜d A qÐ)ˆØÐØ˜k¨1¨aÐ0ˆFØð 2Øˆˆå�MŠM˜"�fÔ0Ñ1Ô1ˆØ‡L‚L�ÑÔÐðÝ'­¬	°7Ñ;Ô;ˆ
ØÐØ�FŠF�6‰NŒNˆNð		ðØ—	’	˜+Ñ&Ô&Ð&ØøÝ”>ð ð ð à¥¤	¡¤Ñ+¨sÒ2Ð2Ýœ-Ô/Ð/Ý”˜tÑ$Ô$Ð$Ø�ðøøøõ �‰IŒIˆõ ”˜T 1Ñ%Ô%¨Ñ,ˆÝ�1�f˜jÑ)Ô)Ð)Ý˜!˜Q 
Ñ+Ô+ˆÝŒ}˜T 5Ñ)Ô)‰ˆÝ•Y˜q ! ZÑ0Ô0Ñ1Ô1ˆà	�Š‰	Œ	ˆ	ˆ	øˆ�Š‰	Œ	ˆ	ˆ	øøøÝŒ×Ò˜d¨A¬IÀ1Ä5Ø/?Ø.=ð 	ñ 	?ô 	?€Að �=Š=˜ÑÔð &ÝŒi×#Ò#Ñ%Ô%Ð%Ø€Hs;   ˜8 ¸AÃ2H ÄD ÄH ÄAE-Å*H Å,E-Å-BH ÈHc                  ó8   — t                                ¦   «          d S r   )rE   rs   rQ   r   r   Úresetr]  ¹  s   € Ý‡N‚NÑÔÐÐÐr   )r   r   r   r   )ArP   r›   rW  Úsysr   r   Úeventlet.greenr   r   r   r   r   r   r   r   Ú__all__rÊ   ÚpkgÚsetattrrƒ   rŽ   r
   ÚDNS_QUERY_TIMEOUTrž   rÑ   rì   rÕ   rý   ré   r×   Úenvironr‰   rw   rH   r   r!   r+   r1   r3   r7   r9   rE   ÚAnswerr=   rS   r    rÏ   rÛ   rÝ   rš   rô   rû   r  r	  r  r'  r-  rB  rC  ÚShortHeaderrA  r  r  r�   r]  rQ   r   r   ú<module>rg     sv  ððð ðD 
€	€	€	Ø €€€Ø 
€
€
€
à €€€Ø Ð Ð Ð Ð Ð Ø (Ð (Ð (Ð (Ð (Ð (Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !Ø Ð Ð Ð Ð Ð ð:ð :ð :ð €n�UÑÔ€ð ˆn˜]Ñ+Ô+€„Ø „Ô × Ò Ð>Ð>Ð>Ñ ?Ô ?Ð ?ØŒ;Ôð Dð D€CØ€GˆCŒK˜˜n˜n¨^¸cÑ-AÑBÔBÑCÔCÐCÐCØŒ;Œ>Ô!ð Jð J€CØ€GˆCŒKŒN˜C  Ð0AÀCÑ0GÑ!HÔ!HÑIÔIÐIÐIØŒ;Œ?Ô"ð Lð L€CØ€GˆCŒKŒO˜S . .Ð1CÀcÑ1IÑ"JÔ"JÑKÔKÐKÐKàŒ;ð 4ð 4€CØ
ˆiÒÐØØ€GˆC��n�n V¨c¡\Ñ2Ô2Ñ3Ô3Ð3Ð3Øð 
€àÐ Ø€	ð —?’? 6Ô#3Ð5GÑHÔHÐ Ø—?’? 6Ô#4Ð6QÑRÔRÐ ð $Ð Ø„J‡N‚NÐ3°RÑ8Ô8×>Ò>Ñ@Ô@ÐDUÐUÐUØˆG�F˜LÑ)Ô)ð Và—’ vÔ'8Ð:_Ñ`Ô`Ðð9ð 9ð 9ð	ð 	ð 	ð
ð 
ð 
ð4ð 4ð 4ð €7ˆ3Œ9Ð+Ñ,Ô,ð 0ð2ð 2ð 2ð 2ð0ð 0ð 0ðFð Fð Fð Fð F�#”,Ô%ñ Fô Fð Fð2Tð Tð Tð Tð Tñ Tô Tð Tðntð tð tð tð tñ tô tð tðn ˆ=¨¨©¬Ð8Ñ8Ô8€ð  œ°¸TØð +ð  +ð  +ð  +ðF"ð "ð "ð+ð +ð +ð%$ð %$ð %$ðP'ð 'ð 'ð 'ðTð ð ð
#ð 
#ð 
#ð2ð 2ð 2ðjð ð ð0,ð ,ð ,ð&(Ø„K×Ò˜"°$ÐÑ7Ô7Ð7Ð7øØ
„{Ôð 'ð 'ð 'Ø"&ÐÐÐØð (ð (ð (à"'ÐÐÐð(øøøð
 ,°"Ø˜¨!¸uØ°Ø!¨¸EðRð Rð Rð Rðj ,°"Ø˜¨!Ø°¸DðXð Xð Xð Xðvð ð ð
 €„	„Ø€„	„€€s   É$J ÊJÊJÊJ