| Server IP : 94.16.115.136 / Your IP : 216.73.217.106 Web Server : Apache/2.4.52 (Ubuntu) System : Linux rogerrabbit 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : bkillingseder ( 1001) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /snap/core22/current/lib/python3/dist-packages/dbus/__pycache__/ |
Upload File : |
o
�t3b1 � @ s4 d Z dZddlmZ ddlmZ G dd� de�ZdS ))�Server�reStructuredText� )�_Server)�
Connectionc sf e Zd ZdZeddf� fdd� Zdd� Zdd� Zd d
� Zdd� Z e
ej�Z
e
ej�Ze
ej�Z� ZS )
r a% 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 s t t| ��| ||||�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__� �-/usr/lib/python3/dist-packages/dbus/server.pyr + s �zServer.__new__c O s i | _ g | _ g | _d S �N)�_Server__connections�on_connection_added�on_connection_removed)�self�args�kwargsr r r �__init__? s
zServer.__init__c C s |� | j� | �|� d S r )�call_on_disconnection�connection_removed�connection_added)r �connr r r �_on_new_connectionN s zServer._on_new_connectionc C �"