HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/self/root/lib/python3/dist-packages/jeepney/__pycache__/routing.cpython-310.pyc
o

���`�@s:ddlmZddlmZmZddlmZGdd�d�ZdS)�)�warn�)�MessageType�HeaderFields)�DBusErrorResponsec@sLeZdZdZddd�Zedd��Zejdd��Zdd	�Zd
d�Z	dd
�Z
dS)�Routera[Routing for messages coming back to a client application.
    
    :param handle_factory: Constructor for an object like asyncio.Future,
        with methods *set_result* and *set_exception*. Outgoing method call
        messages will get a handle associated with them.
    :param on_unhandled: Callback for messages not otherwise dispatched.
    NcCs"||_||_d|_i|_i|_dS)Nr)�handle_factory�
_on_unhandled�outgoing_serial�awaiting_reply�signal_callbacks)�selfr�on_unhandled�r�1/usr/lib/python3/dist-packages/jeepney/routing.py�__init__s

zRouter.__init__cCs|jS�N)r	)r
rrrrszRouter.on_unhandledcCstddd�||_dS)NzeSetting on_unhandled is deprecated. Please use the filter() method or simple receive() calls instead.���
stacklevel)rr	)r
�valuerrrrs�
cCsD|jd7_|j|j_|jjtjur |��|j|jj<}|SdS)zNSet the serial number in the message & make a handle if a method call
        rN)r
�header�serial�message_typerZmethod_callrr)r
�msgZhandlerrr�outgoings
�zRouter.outgoingcCs tddd�||j|||f<dS)z%Add a callback for a signal.
        zQThe subscribe_signal() method is deprecated. Please use the filter() API instead.rrN)rr)r
�callback�path�	interface�memberrrr�subscribe_signal)s�zRouter.subscribe_signalcCs�|j}|jtjur2|j�tjd�|j�tjd�|j�tj	d�f}|j
�|d�}|dur2||j�dS|j�tjd�}|j
�|d�}|durb|jtjurS|�|j�dS|jtjurb|�t|��dS|jrl|�|�dSdS)z#Route an incoming message.
        N���)rrr�signalZfields�getrrrrr�body�reply_serialr�popZ
method_returnZ
set_result�errorZ
set_exceptionrr)r
rZhdr�key�cbr%Zreply_handlerrr�incoming0s,�
�zRouter.incomingr)�__name__�
__module__�__qualname__�__doc__r�propertyr�setterrr r*rrrrrs



rN)�warningsrZ	low_levelrrZwrappersrrrrrr�<module>s