Multiple connections to dbus-daemon in single appication
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Wed Sep 19 19:05:48 UTC 2018
On Mon, 17 Sep 2018 12:45:10 +0100, Simon McVittie wrote:
> You can also open multiple connections, each of which can own any
> number of well-known names, by calling dbus_bus_get_private() several
> times to get several distinct DBusConnection objects. This is usually
> the wrong thing to do, but is an option if you have specialized
> requirements.
Actually, come to think of it, if you want messages addressed to
different bus names to be handled differently, this is the only way to
do it. This is because your clients might be addressing the messages
using either the unique name or the well-known name, and you probably
don’t want your behaviour to vary based on this. So you need to pair a
different unique name with each well-known name.
More information about the dbus
mailing list