| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/jeepney/io/__pycache__/ |
Upload File : |
�
+�c : � � � d dl Z d dlmZ d dlZd dlmZ d dlZd dlmZ d dlm Z n# e
$ r d dlm Z Y nw xY wd dlm
Z
mZ d dlZd dlmZ d dlmZmZ d d lmZ d d
lmZmZ d dlmZmZmZ d dlmZm Z d d
l!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z( ej) e*� � Z+g d�Z,ed� � � Z- G d� de� � Z.d"dd�de.fd�Z/ G d� de%� � Z0 G d� d� � Z1 G d� d� � Z2 G d� d e� � Z3e d"dd�d!�� � Z4dS )#� N)�contextmanager)�count)�Optional)�asynccontextmanager)�Value�Error)�Channel)�
Authenticator�BEGIN)�get_bus)�FileDescriptor�fds_buf_size)�Parser�MessageType�Message)� ProxyBase�
unwrap_msg)�message_bus� )�MessageFilters�FilterHandle�ReplyMatcher�RouterClosed�check_replyable)�open_dbus_connection�open_dbus_router�Proxyc # �� K � d V � d S # t $ ra} | j t j t j hv rt j d� � d �t j d� | � � � � | �d } ~ ww xY w)Nzthis socket was already closedzsocket connection broken: {})�OSError�errno�EBADF�ENOTSOCK�trio�ClosedResourceError�BrokenResourceError�format)�excs �1/usr/lib/python3/dist-packages/jeepney/io/trio.py�)_translate_socket_errors_to_stream_errorsr) 0 s� � � � � �
�������� � � ��9���e�n�5�5�5��*�+K�L�L�RV�V��*�.�5�5�c�:�:�� ��
��������s �
�
A5�AA0�0A5c �z � e Zd ZdZdd�Zdd�defd�Zdefd �Zdde fd�Z
defd
�Zd� Zd� Z
d� Zed� � � ZdS )�DBusConnectiona� A plain D-Bus connection with no matching of replies.
This doesn't run any separate tasks: sending and receiving are done in
the task that calls those methods. It's suitable for implementing servers:
several worker tasks can receive requests and send replies.
For a typical client pattern, see :class:`DBusRouter`.
Implements trio's channel interface for Message objects.
Fc �� � || _ || _ t � � | _ t d�� � | _ d | _ t j � � | _ t j � � | _
d | _ d S )Nr )�start)�socket�
enable_fdsr �parserr �outgoing_serial�unique_namer# �Lock� send_lock� recv_lock�_leftover_to_send)�selfr. r/ s r( �__init__zDBusConnection.__init__I s[ � ����$����h�h���$�1�~�~�~������������������!%����� N��serial�messagec � �: K � | j 4 �d{V �� |�t | j � � }| j rt j d� � nd}|� ||�� � }| � ||� � � d{V �� ddd� � �d{V �� dS # 1 �d{V ��swxY w Y dS )z.Serialise and send a :class:`~.Message` objectN�i)�fds)r4 �nextr1 r/ �array� serialise�
_send_data)r7 r<