Re: Broadcast to specific user?

Felipe Gasper <felipe-c4PQK5fb7feI/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>

> On Oct 28, 2020, at 10:29 AM, Simon McVittie <[email protected]> wrote:
> 
> On Tue, 27 Oct 2020 at 14:30:37 -0400, Felipe Gasper wrote:
>> Is it possible with D-Bus to broadcast a signal such that only clients
>> logged in as a specific user or group will receive the message?
> 
> If you want to send non-public information on the system bus, you can't
> use broadcasts. If you want to emulate a more controlled multicast by
> sending individual unicast signals to each recipient, you should
> implement your own subscription mechanism to avoid waking up clients
> that have the right user/group but don't care about this particular
> message, for example:

Thank you for this.

This context doesn’t have a “service” that would manage subscriptions. I think we can actually make unicast work, though, which solves this problem a bit more simply.

-FG
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.