File: //usr/lib/python3/dist-packages/twisted/names/test/__pycache__/test_util.cpython-38.pyc
U
W[K � @ s� d Z ddlmZmZ ddlmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ dd lmZmZ ee�G d
d� de��Ze ee� ee�G dd
� d
e��Ze ee� dS )z$
Utilities for Twisted.names tests.
� )�division�absolute_import)� randrange)�implementer)�verifyClass)�IPv4Address)�succeed)�Clock)�IReactorUDP�
IUDPTransportc @ sJ e Zd ZdZdd� Zdd� Zdd� Zdd d
�Zdd� Zd
d� Z dd� Z
dS )�MemoryDatagramTransporta�
This L{IUDPTransport} implementation enforces the usual connection rules
and captures sent traffic in a list for later inspection.
@ivar _host: The host address to which this transport is bound.
@ivar _protocol: The protocol connected to this transport.
@ivar _sentPackets: A C{list} of two-tuples of the datagrams passed to
C{write} and the addresses to which they are destined.
@ivar _connectedTo: L{None} if this transport is unconnected, otherwise an
address to which all traffic is supposedly sent.
@ivar _maxPacketSize: An C{int} giving the maximum length of a datagram
which will be successfully handled by C{write}.
c C s"