Server
D-Bus server definition
- class SpecialServerObjectHandler(message_bus, object_path, obj, error_mapper=None, server=<class 'dasbus.server.handler.GLibServer'>, signal_factory=<class 'dasbus.signal.Signal'>)[source]
Server object handler that inserts sender into the parameters.
Create a new handler.
- Parameters:
message_bus – a message bus
object_path – a DBus path of the object
obj – a Python instance of the object
error_mapper – a DBus error mapper
server – a DBus server library
signal_factory – a signal factory
- _abc_impl = <_abc._abc_data object>
- _error_mapper
- _handle_call(interface_name, method_name, *parameters, sender=None)[source]
Override the default call handler to insert sender into the parameters.
- _method_callback(invocation, interface_name, method_name, parameters)[source]
Override the default method callback to insert sender into the parameters.
- _registrations
- _server
- _signal_factory
- _dbus_setup(objects)[source]
Setup the DBus server and publish the objects.
- serve(config)[source]
Main function to serve and start the daemon server.
- Parameters:
config (Config) – An instance of the configuration class.