%PDF- %PDF-
Direktori : /lib/python3/dist-packages/dns/quic/__pycache__/ |
Current File : //lib/python3/dist-packages/dns/quic/__pycache__/_trio.cpython-312.pyc |
� 5��e� � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dlZ d dlm Z d dlmZmZmZmZmZ G d� de� Z G d� de� Z G d� d e� Zy) � N)�NullContext)�QUIC_MAX_DATAGRAM�AsyncQuicConnection�AsyncQuicManager�BaseQuicStream� UnexpectedEOFc �L � � e Zd Z� fd�Zd� Zd d�Zd d�Zd� Zd� Zd� Z d� Z � xZS )�TrioQuicStreamc �X �� t �| � ||� t j � | _ y �N)�super�__init__�trio� Condition�_wake_up)�self� connection� stream_id� __class__s ��0/usr/lib/python3/dist-packages/dns/quic/_trio.pyr zTrioQuicStream.__init__ s �� � ����Y�/����(�� � c � �& K � | j j |� ry || _ | j 4 �d { ��� | j j � � d { ��� d d d � �d { ��� d| _ �r7 �>7 �7 �# 1 �d { ���7 sw Y � xY w�w)Nr )�_buffer�have� _expectingr �wait)r �amounts r �wait_forzTrioQuicStream.wait_for s� � �� ���|�|� � ��(��$�D�O��}�}� +� +��m�m�(�(�*�*�*� +� +��D�O� � +��*�� +�� +� +� +�sV �5B�A6�B�A<�A8�A<�B�)A:�* B�8A<�:B�<B�B�B� Bc � � K � |�t d � }nt j |� }|5 | j d� � d { ��� t j d| j j d� � \ }| j |� � d { ��� | j j |� cd d d � S 7 �r7 �*# 1 sw Y t j j �xY w�w)N� z!H)r r � move_on_afterr �struct�unpackr �get�dns� exception�Timeout)r �timeout�context�sizes r �receivezTrioQuicStream.receive'