o
    ¨Ýj
  ã                   @   sŠ  U d dl mZmZmZmZ d dlZd dlZej 	d¡r�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 d
lmZ d dlmZ d dlmZ dZdd„ Zdd„ ZdeefiZeeeeef f ed< ej 	d¡r—d dlZd dlmZ d dlm Z  d dlm!Z! dd„ Z"dd„ Z#e"e#fed< d'dd„Z$ndZG dd „ d ƒZ%G d!d"„ d"ƒZG d#d$„ d$ƒZG d%d&„ d&ƒZeee&e&f  Z'dS )(é    )ÚAnyÚDictÚListÚTupleNZdoq©ÚNullContext)ÚAsyncioQuicConnection©ÚAsyncioQuicManager)ÚAsyncioQuicStream)ÚAsyncQuicConnection)ÚAsyncQuicManager)ÚSyncQuicConnection)ÚSyncQuicStream)ÚSyncQuicManagerTc                  O   s   t d ƒS ©Nr   )ÚargsÚkwargs© r   úL/var/www/html/chatgpt/venv/lib/python3.10/site-packages/dns/quic/__init__.pyÚnull_factory   s   r   c                 O   s   t |i |¤ŽS r   r	   ©Úcontextr   r   r   r   r   Ú_asyncio_manager_factory   s   r   ZasyncioÚ_async_factoriesÚtrio)ÚTrioQuicConnection©ÚTrioQuicManager)ÚTrioQuicStreamc                   C   s   t  ¡ S r   )r   Zopen_nurseryr   r   r   r   Ú_trio_context_factory/   s   r    c                 O   s   t | g|¢R i |¤ŽS r   r   r   r   r   r   Ú_trio_manager_factory2   s   r!   c                 C   s   | d u r	t j ¡ } t|  ¡  S r   )ÚdnsZasyncbackendZget_default_backendr   Úname)Úbackendr   r   r   Úfactories_for_backend7   s   
r%   Fc                   @   ó   e Zd ZdS )ÚAsyncQuicStreamN©Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r'   ?   ó    r'   c                   @   ó   e Zd Zdefdd„ZdS )r   Úreturnc                 Ã   s   �t ‚r   ©ÚNotImplementedError©Úselfr   r   r   Úmake_streamC   s   €zAsyncQuicConnection.make_streamN©r)   r*   r+   r   r3   r   r   r   r   r   B   ó    r   c                   @   r&   )r   Nr(   r   r   r   r   r   F   r,   r   c                   @   r-   )r   r.   c                 C   s   t ‚r   r/   r1   r   r   r   r3   J   s   zSyncQuicConnection.make_streamNr4   r   r   r   r   r   I   r5   r   r   )(Útypingr   r   r   r   Zdns._featuresr"   Zdns.asyncbackendZ	_featuresZhaveZdns._asyncbackendr   Zdns.quic._asyncior   r
   r   Zdns.quic._commonr   r   Zdns.quic._syncr   r   r   Z	have_quicr   r   r   ÚstrÚ__annotations__r   Zdns.quic._trior   r   r   r    r!   r%   r'   ÚbytesZHeadersr   r   r   r   Ú<module>   sB   	ÿ