| 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 dlZd dlmZ d dlmZ d dlmZmZ d dl m
Z
d dlmZm
Z
mZ d dlmZmZ d dlmZ d d
lmZmZmZmZmZ G d� d� � Zdd�Z G d� d� � Z G d� d� � Z G d� de� � ZdS )� N)�count)�Optional)�
Authenticator�BEGIN)�get_bus)�Message�MessageType�Parser)� ProxyBase�
unwrap_msg)�message_bus� )�MessageFilters�FilterHandle�ReplyMatcher�RouterClosed�check_replyablec �f � e Zd ZdZdej dej fd�Zdd�defd�Z d efd
�Z
d� Zd� Zd
� Z
dS )�DBusConnectionaP 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`.
�reader�writerc � � || _ || _ t � � | _ t d�� � | _ d | _ t j � � | _ d S )Nr )�start)
r r r
�parserr �outgoing_serial�unique_name�asyncio�Lock� send_lock)�selfr r s �4/usr/lib/python3/dist-packages/jeepney/io/asyncio.py�__init__zDBusConnection.__init__ sD � ��������h�h���$�1�~�~�~������ �������� N��serial�messagec � �2 K � | j 4 �d{V �� |�t | j � � }| j � |� |� � � � | j � � � � d{V �� ddd� � �d{V �� dS # 1 �d{V ��swxY w Y dS )z.Serialise and send a :class:`~.Message` objectN)r �nextr r �write� serialise�drain�r r&