Using D-BUS messages for event handling

Jarmo.Nikula@nokia.com Jarmo.Nikula@nokia.com
Wed, 28 May 2003 10:51:03 +0300


Ok.

But many clients can authenticate to one server at a time, right? Then it is probably possible to implement a server that sends all it's events to all the clients who are currently authenticated, using DATA command. This is not exactly what we need, but could do somehow.

Is it so that client can then use CANCEL command to unauthenticate (unregister) from the server? If so, we could live by using the commands as follows:

Client:
AUTH		~== subscribe
CANCEL	~== unsubscribe

Server:
DATA		~== publish

?


	-Jarmo



-----Original Message-----
From: ext Havoc Pennington [mailto:hp@redhat.com]
Sent: 28 May, 2003 07:06
To: Nikula Jarmo (NMP/Oulu)
Cc: message-bus-list@freedesktop.org
Subject: Re: Using D-BUS messages for event handling


On Tue, May 27, 2003 at 11:37:45AM +0300, Jarmo.Nikula@nokia.com wrote:
> 
> A simple question: is there a support for so called subscribe /
> publish mechanism in D-BUS (called also Notify request / Notify
> -concept) ?


This is what the TODO file means by "message matching" - there's some
discussion in the list archives of how it might work that you may be
interested in.

We'll certainly end up having a feature for this in the end, but right
now all broadcasts are global.

It should be easy to implement, the main thing is just to decide how
it'll work.

Havoc