관리-도구
편집 파일: _trio.cpython-38.pyc
U /?�f� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dlZ d dlm Z d dlmZmZmZmZmZ G dd� de�ZG dd� de�ZG dd � d e�ZdS ) � N)�NullContext)�QUIC_MAX_DATAGRAM�AsyncQuicConnection�AsyncQuicManager�BaseQuicStream� UnexpectedEOFc sX e Zd Z� fdd�Zdd� Zddd�Zdd d �Zdd� Zd d� Zdd� Z dd� Z � ZS )�TrioQuicStreamc s t � �||� t�� | _d S �N)�super�__init__�trio� Condition�_wake_up)�self� connection� stream_id�� __class__� �</opt/hc_python/lib/python3.8/site-packages/dns/quic/_trio.pyr s zTrioQuicStream.__init__c � sR | j �|�rd S || _| j4 I d H � | j�� I d H W 5 Q I d H R X d| _q d S )Nr )�_bufferZhaveZ _expectingr �wait)r �amountr r r �wait_for s zTrioQuicStream.wait_forNc � s� |d krt d �}n t�|�}|�P | �d�I d H t�d| j�d��\}| �|�I d H | j�|�W 5 Q R � S Q R X tj j �d S )N� z!H)r r � move_on_afterr �struct�unpackr �get�dns� exception�Timeout)r �timeout�context�sizer r r �receive'