https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/jeepney/integrate/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/jeepney/integrate/__pycache__/asyncio.cpython-310.pyc
o

���`	�@s�dZddlZddlmZddlmZmZddlmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZdd	lmZed
dd�Gd
d�dej�ZGdd�de�Zddd�ZdS)z*Deprecated: use jeepney.io.asyncio instead�N)�warn)�Parser�MessageType)�AuthenticationError�BEGIN�make_auth_external�
SASLParser)�get_bus)�message_bus)�Router)�	ProxyBasezOjeepney.integrate.asyncio is deprecated: please use jeepney.io.asyncio instead.�)�
stacklevelc@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�DBusProtocolcCs0t�|_t�|_ttj�|_t��|_d|_	dS�N)
r�auth_parserr�parserr�asyncio�Future�router�authentication�unique_name��self�r�;/usr/lib/python3/dist-packages/jeepney/integrate/asyncio.py�__init__s


zDBusProtocol.__init__cCs||_|j�dt��dS)N�)�	transport�writer)rrrrr�connection_madeszDBusProtocol.connection_madecCs2|j�t�|j�d�|j|_|�|jj�dS)NT)	rrrr�
set_result�data_received_post_auth�
data_receivedr�bufferrrrr�_authenticatedszDBusProtocol._authenticatedcCsD|j�|�|jjr|��dS|jjr |j�t|jj��dSdSr)r�feed�
authenticatedr%�errorr�
set_exceptionr)r�datarrrr#!s�zDBusProtocol.data_receivedcCs"|j�|�D]}|j�|�qdSr)rr&r�incoming)rr*�msgrrrr"(s�z$DBusProtocol.data_received_post_authcCs6|j��s	td��|j�|�}|��}|j�|�|S)Nz/Wait for authentication before sending messages)r�done�RuntimeErrorr�outgoing�	serialiserr)r�message�futurer*rrr�send_message,s
zDBusProtocol.send_messagec�s(�|jjtjkrtd��|�|�IdHS)Nz&Only method call messages have replies)�header�message_typer�method_call�	TypeErrorr3)rr1rrr�send_and_get_reply5s�zDBusProtocol.send_and_get_replyN)
�__name__�
__module__�__qualname__rr r%r#r"r3r8rrrrrs	rcs0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�Proxyz�An asyncio proxy for calling D-Bus methods

    :param msggen: A message generator object.
    :param DBusProtocol proto: Protocol object to send and receive messages.
    cst��|�||_dSr)�superr�	_protocol)r�msggen�protocol��	__class__rrrAs
zProxy.__init__cCsd�|j|j�S)Nz
Proxy({}, {}))�format�_msggenr>rrrr�__repr__EszProxy.__repr__cs��fdd�}|S)Nc�s4��|i|��}|jjtjusJ��j�|�IdHSr)r4r5rr6r>r8)�args�kwargsr,��make_msgrrr�innerIs�z!Proxy._method_call.<locals>.innerr)rrIrJrrHr�_method_callHszProxy._method_call)r9r:r;�__doc__rrErK�
__classcell__rrrArr<;s
r<�SESSIONc�sd�|dur	t��}|jtt|�d�IdH\}}|jIdHtt|�}|��IdH}|d|_	||fS)N)�pathr)
r�get_event_loop�create_unix_connectionrr	rr<r
�Hellor)�bus�loop�t�p�hello_replyrrr�connect_and_authenticateQs�

rX)rNN)rLr�warningsr�jeepneyrr�jeepney.authrrrr�jeepney.busr	�jeepney.bus_messagesr
�jeepney.routingr�jeepney.wrappersr�Protocolrr<rXrrrr�<module>s�,

https://t.me/RX1948 - 2025