%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Ϫ�f+����dZddlZddlZddlmZddlZddlmZmZddl	m
Z
mZmZm
Z
mZddlmZee
�Gd�d��Zeeee
�Gd	�d
ej$��Zy)zM
Windows-specific implementation of the L{twisted.internet.stdio} interface.
�N)�implementer)�_pollingfile�main)�IAddress�	IConsumer�IHalfCloseableProtocol�
IPushProducer�
ITransport)�Failurec��eZdZy)�Win32PipeAddressN)�__name__�
__module__�__qualname__���>/usr/lib/python3/dist-packages/twisted/internet/_win32stdio.pyr
r
s��rr
c�t�eZdZdZdZdd�Zd�Zd�Zd�ZdZ	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zy)�
StandardIOFNc��|�ddlm}tddd�D]&}tj|t
j��(tjj||�||_
tjtj�}tjtj�}tj||j |j"�|_tj&||j(�|_|j-|j$�|j-|j*�|jj/|�y)z�
        Start talking to standard IO with the given protocol.

        Also, put it stdin/stdout/stderr into binary mode.
        Nr)�reactor��)�twisted.internetr�range�msvcrt�setmode�os�O_BINARYr�
_PollingTimer�__init__�proto�win32api�GetStdHandle�STD_INPUT_HANDLE�STD_OUTPUT_HANDLE�_PollableReadPipe�dataReceived�readConnectionLost�stdin�_PollableWritePipe�writeConnectionLost�stdout�_addPollableResource�makeConnection)�selfr"r�stdfd�hstdin�hstdouts      rr!zStandardIO.__init__$s����?�0��1�a��^�	/�E��N�N�5�"�+�+�.�	/�	�"�"�+�+�D�'�:���
��&�&�x�'@�'@�A���'�'��(B�(B�C��!�3�3��D�%�%�t�'>�'>�
��
�#�5�5�g�t�?W�?W�X����!�!�$�*�*�-��!�!�$�+�+�.��
�
�!�!�$�'rc�:�|jj|�y�N)r"r(�r0�datas  rr(zStandardIO.dataReceivedAs���
�
����%rc��tj|j�r|jj�|j	�yr5)r�
providedByr"r)�
checkConnLost�r0s rr)zStandardIO.readConnectionLostDs0��!�,�,�T�Z�Z�8��J�J�)�)�+����rc��tj|j�r|jj�|j	�yr5)rr9r"r,r:r;s rr,zStandardIO.writeConnectionLostIs0��!�,�,�T�Z�Z�8��J�J�*�*�,����rrc���|xjdz
c_|jdk\rAd|_d|_|jj	ttj��yy)NrrT)�	connsLost�
disconnecting�disconnectedr"�connectionLostrr�CONNECTION_DONEr;s rr:zStandardIO.checkConnLostPsN�����!����>�>�Q��!%�D�� $�D���J�J�%�%�g�d�.B�.B�&C�D�rc�:�|jj|�yr5)r-�writer6s  rrDzStandardIO.writeYs�������$�rc�X�|jjdj|��y)Nr)r-rD�join)r0�seqs  r�
writeSequencezStandardIO.writeSequence\s�������#�(�(�3�-�(rc�z�d|_|jj�|jj�y)NT)r?r*�closer-r;s r�loseConnectionzStandardIO.loseConnection_s*��!����
�
���������rc��t�Sr5�r
r;s r�getPeerzStandardIO.getPeerd����!�!rc��t�Sr5rMr;s r�getHostzStandardIO.getHostgrOrc�:�|jj||�Sr5)r-�registerProducer)r0�producer�	streamings   rrSzStandardIO.registerProducerls���{�{�+�+�H�i�@�@rc�6�|jj�Sr5)r-�unregisterProducerr;s rrWzStandardIO.unregisterProduceros���{�{�-�-�/�/rc�8�|jj�yr5)r*�
stopProducingr;s rrYzStandardIO.stopProducingvs���
�
� � �"rc�8�|jj�yr5)r*�pauseProducingr;s rr[zStandardIO.pauseProducing{s���
�
�!�!�#rc�8�|jj�yr5)r*�resumeProducingr;s rr]zStandardIO.resumeProducing~s���
�
�"�"�$rr5)rrrr?r@r!r(r)r,r>r:rDrHrKrNrQrSrWrYr[r]rrrrrs`���M��L�(�:&��
�
�I�E� �)��
"�"�
A�0�#�
$�%rr)�__doc__rr�zope.interfacerr#rrr�twisted.internet.interfacesrrrr	r
�twisted.python.failurerr
r rrrr�<module>rbsu���
�	�&��/���+�
�X��	�	��	�
�Z��M�2�_%��+�+�_%�3�_%r

Zerion Mini Shell 1.0