![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/twisted/application/__pycache__/ |
o �b! � @ s� d Z ddlmZmZ ddlmZ ddlmZmZ dej fdd�Z dd ed ejdeej defdd �Z d ed ejdejfdd�Zd dgZdS )z� Construct listening port services from a simple string description. @see: L{twisted.internet.endpoints.serverFromString} @see: L{twisted.internet.endpoints.clientFromString} � )�Optional�cast)�StreamServerEndpointService)� endpoints� interfaces�returnc C s ddl m} ttj| �S )Nr ��reactor)�twisted.internetr r r �IReactorCorer � r �>/usr/lib/python3/dist-packages/twisted/application/strports.py�_getReactor s r N�description�factoryr c C s* |du rt � }tt�|| �|�}d|_|S )aj Return the service corresponding to a description. @param description: The description of the listening port, in the syntax described by L{twisted.internet.endpoints.serverFromString}. @type description: C{str} @param factory: The protocol factory which will build protocols for connections to this service. @type factory: L{twisted.internet.interfaces.IProtocolFactory} @rtype: C{twisted.application.service.IService} @return: the service corresponding to a description of a reliable stream server. @see: L{twisted.internet.endpoints.serverFromString} NT)r r r �serverFromString�_raiseSynchronously)r r r �svcr r r �service s �r c C s>