HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/dbus/__pycache__/server.cpython-311.pyc
�

�	z]1��B�dZdZddlmZddlmZGd�de��ZdS))�Server�reStructuredText�)�_Server)�
Connectionc���eZdZdZeddf�fd�	Zd�Zd�Zd�Zd�Z	e
ej��Z
e
ej��Ze
ej��Z�xZS)ra%An opaque object representing a server that listens for connections from
    other applications.

    This class is not useful to instantiate directly: you must subclass it and
    either extend the method connection_added, or append to the
    list on_connection_added.

    :Since: 0.83
    Nc�\��tt|���|||||��S)a�Construct a new Server.

        :Parameters:
            `address` : str
                Listen on this address.
            `connection_class` : type
                When new connections come in, instantiate this subclass
                of dbus.connection.Connection to represent them.
                The default is Connection.
            `mainloop` : dbus.mainloop.NativeMainLoop or None
                The main loop with which to associate the new connections.
            `auth_mechanisms` : sequence of str
                Authentication mechanisms to allow. The default is to allow
                any authentication mechanism supported by ``libdbus``.
        )�superr�__new__)�cls�address�connection_class�mainloop�auth_mechanisms�	__class__s     ��-/usr/lib/python3/dist-packages/dbus/server.pyr
zServer.__new__+s3���"�V�S�!�!�)�)�#�w�8H��/�+�+�	+�c�2�i|_g|_	g|_dS�N)�_Server__connections�on_connection_added�on_connection_removed)�self�args�kwargss   r�__init__zServer.__init__?s,�����#%�� �	K�&(��"�	�	rc�d�|�|j��|�|��dSr)�call_on_disconnection�connection_removed�connection_added)r�conns  r�_on_new_connectionzServer._on_new_connectionNs3���"�"�4�#:�;�;�;����d�#�#�#�#�#rc�B�|jr|jD]}||���dSdS)a�Respond to the creation of a new Connection.

        This base-class implementation just invokes the callbacks in
        the on_connection_added attribute.

        :Parameters:
            `conn` : dbus.connection.Connection
                A D-Bus connection which has just been added.

                The type of this parameter is whatever was passed
                to the Server constructor as the ``connection_class``.
        N)r�rr �cbs   rrzServer.connection_addedRsD���#�	��.�
�
����4�����	�	�
�
rc�B�|jr|jD]}||���dSdS)a�Respond to the disconnection of a Connection.

        This base-class implementation just invokes the callbacks in
        the on_connection_removed attribute.

        :Parameters:
            `conn` : dbus.connection.Connection
                A D-Bus connection which has just become disconnected.

                The type of this parameter is whatever was passed
                to the Server constructor as the ``connection_class``.
        N)rr#s   rrzServer.connection_removedcsD���%�	��0�
�
����4�����	�	�
�
r)�__name__�
__module__�__qualname__�__doc__rr
rr!rr�propertyr�get_addressr�get_id�id�get_is_connected�is_connected�
__classcell__)rs@rrr s����������0:��t�+�+�+�+�+�+�(���$�$�$����"���"�8�G�/�0�0�G��8�G�N�+�+�B��8�G�4�5�5�L�L�L�L�LrrN)�__all__�
__docformat__�_dbus_bindingsr�dbus.connectionrr�rr�<module>r6ss��4��"�
�"�"�"�"�"�"�&�&�&�&�&�&�V6�V6�V6�V6�V6�W�V6�V6�V6�V6�V6r