Re: Multiple connections to dbus-daemon in single appication
Simon McVittie <smcv-ZGY8ohtN/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 20 Sep 2018 at 07:05:48 +1200, Lawrence D'Oliveiro 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
>
> 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
Yes, that's one of the unusual situations where this makes sense. It's
more usual to have a single connection, treat your unique name and all
your well-known names as being essentially equivalent, and use distinct
object paths and interfaces for the different APIs you offer.
smcv
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus