DBus for RMI

Havoc Pennington hp at redhat.com
Tue Sep 4 07:37:07 PDT 2007


Hi,

On 9/3/07, Sven Herzberg <herzi-ml at gnome-de.org> wrote:
> 1. When one app goes into receiving mode it starts a dbus-daemon on a
> local tcp port.

You don't need the daemon, just have the app listen directly using
libdbus (DBusServer).

> 2. It announces the open port via avahi (service-discovery, etc.).

Here is an example of an app that listens with dbus and advertises via Avahi:
http://svn.mugshot.org/local-export-daemon/trunk/

This example uses anonymous auth, though. To get secure auth you have
to do some kind of extra auth, which you could do as dbus messages if
you wanted (i.e. have dbus auth anonymously, but then do your own
secondary auth based on sending a challenge and having the
authenticator hash challenge+secret). Or if both sides share a
homedir, just use DBUS_COOKIE_SHA1.

Havoc


More information about the dbus mailing list