⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.9
/
site-packages
/
dasbus
/
__pycache__
/
View File Name :
connection.cpython-39.pyc
a װ_* @ s d dl Z d dlZd dlmZmZ d dlmZmZ d dlm Z m Z d dlmZ d dl mZ d dlZedd d d lmZ e eZg d ZG dd deZG d d dedZG dd deZG dd deZG dd deZG dd deZdS ) N)ABCMetaabstractmethod) DBUS_NAME_FLAG_ALLOW_REPLACEMENT%DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)ObjectProxyInterfaceProxy)ErrorMapper)ServerObjectHandlerGioz2.0)r )GLibConnection MessageBusSystemMessageBusSessionMessageBusAddressedMessageBusc @ sP e Zd ZdZejjejjB Ze d ddZ e d ddZe eddfddZdS )r z4The low-level DBus connection library based on GLib.Nc C s t d ttjj| S )zGet a system bus connection.Connecting to the system bus.)loginfor bus_get_syncBusTypeZSYSTEMcancellable r 5/usr/lib/python3.9/site-packages/dasbus/connection.pyget_system_bus_connection6 s z(GLibConnection.get_system_bus_connectionc C s t d ttjj| S )zGet a session bus connection.Connecting to the session bus.)r r r r r ZSESSIONr r r r get_session_bus_connection? s z)GLibConnection.get_session_bus_connectionc C s t j| |||S )3Get a connection to a bus at the specified address.)r ZDBusConnectionZnew_for_address_sync)Zbus_addressflagsZobserverr r r r get_addressed_bus_connectionH s z+GLibConnection.get_addressed_bus_connection)N)N) __name__ __module____qualname____doc__r ZDBusConnectionFlagsZAUTHENTICATION_CLIENTZMESSAGE_BUS_CONNECTIONZ DEFAULT_FLAGSstaticmethodr r r r r r r r . s r c @ sZ e Zd ZdZeedd Zdd ZedddZed d Z edd Z ed d ZdS )AbstractMessageBusa Abstract representation of a message bus. The property connection represents a connection to the bus. You can register a service name with register_service, or publish an object with publish_object and get a proxy of a remote object with get_proxy. c C s dS )The DBus connection.Nr selfr r r connection\ s zAbstractMessageBus.connectionc C sD z| j duW S ty> } ztd| W Y d}~dS d}~0 0 dS )znCheck if the connection is set up. :return: True if the connection is set up otherwise False NzConnection can't be created: %sF)r( Exceptionr Zwarning)r' er r r check_connectionb s z#AbstractMessageBus.check_connectionNc K s dS )a Returns a proxy of a remote DBus object. :param service_name: a DBus name of a service :param object_path: a DBus path of an object :param interface_name: a DBus name of an interface or None :return: a proxy object Nr )r' service_nameobject_pathinterface_namekwargsr r r get_proxym s zAbstractMessageBus.get_proxyc K s dS )a Register a service on DBus. A service can be registered by requesting its name on DBus. This method should be called only after all of the required objects of the service are published on DBus. :param service_name: a DBus name of a service Nr )r' r, r/ r r r register_servicey s z#AbstractMessageBus.register_servicec K s dS )zPublish an object on DBus. :param object_path: a DBus path of an object :param obj: an instance of @dbus_interface or @dbus_class Nr )r' r- objr/ r r r publish_object s z!AbstractMessageBus.publish_objectc C s dS )Disconnect from DBus.Nr r&