%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jeepney/io/__pycache__/ |
Current File : //lib/python3/dist-packages/jeepney/io/__pycache__/asyncio.cpython-312.pyc |
� +�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� Zy)� N)�count)�Optional)� Authenticator�BEGIN)�get_bus)�Message�MessageType�Parser)� ProxyBase� unwrap_msg)�message_bus� )�MessageFilters�FilterHandle�ReplyMatcher�RouterClosed�check_replyablec �x � e Zd ZdZdej dej fd�Zdd�defd�Z d efd �Z d� Zd� Zd � Z y)�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 � | _ y )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__ s: � ��������h���$�1�~������ ������ N��serial�messagec � �R K � | j 4 �d{ ��� |�t | j � }| j j |j |� � | j j � � d{ ��� ddd� �d{ ��� y7 �x7 �7 � # 1 �d{ ���7 sw Y yxY w�w)z.Serialise and send a :class:`~.Message` objectN)r �nextr r �write� serialise�drain�r r&