0x1949 Team - FAZEMRX - MANAGER
Edit File: test_udp.cpython-310.pyc
o �b�a � @ s< d Z ddlZddlmZ ddlmZmZmZmZm Z m Z ddlmZm Z mZ ddlmZ ddlmZ G dd � d �ZG d d� deej�ZG dd � d eej�ZG dd� de�ZG dd� de�ZG dd� dej�Zee�e d� d�G dd� de��Zee�e d� d�G dd� de��Zee�e d� d�G dd� de��Z dS )zG Tests for implementations of L{IReactorUDP} and L{IReactorMulticast}. � N)�skipIf)�defer�error� interfaces�protocol�reactor�udp)�Deferred� gatherResults� maybeDeferred)�runtime)�TestCasec @ s0 e Zd ZdZdZdZdd� Zdd� Zdd� ZdS ) �Mixinr Nc C s g | _ d S �N)�packets��self� r �7/usr/lib/python3/dist-packages/twisted/test/test_udp.py�__init__ � zMixin.__init__c C s0 d| _ | jd ur| jd }| _|�d � d S d S �N� )�started�startedDeferred�callback�r �dr r r � startProtocol s �zMixin.startProtocolc C s d| _ d S r )�stoppedr r r r �stopProtocol# r zMixin.stopProtocol) �__name__� __module__�__qualname__r r r r r r r r r r r s r c @ s e Zd ZdZdZdd� ZdS )�ServerNr c C s: | j �||f� | jd ur| jd }| _|�d � d S d S r �r �append�packetReceivedr )r �data�addrr r r r �datagramReceived+ s �zServer.datagramReceived)r! r"