using dbus peer to peer, i.e. without external bus daemon

Alexander Neundorf neundorf at eit.uni-kl.de
Tue Mar 24 02:50:04 PDT 2009


Hi,

is there somewhere documentation or a simple example how to use libdbus 
without dbus-daemon ?
I guess from the client side not much changes, except the address to connect 
to ?

I found the documentation at 
http://dbus.freedesktop.org/doc/api/html/group__DBusServer.html , but it's 
missing an overview.

Is it maybe like this ?
I do the same in my server as when using an external dbus daemon, but instead 
of connecting to the daemon I call dbus_server_listen(), and then call the 
add_watch() function on the server, instead of on the connection ? 
Additionally I then have to call dbus_server_set_new_connection_function() ? 
And there I have to call dbus_connection_ref() on the new connection and keep 
the pointer somewhere ?
If I then send something from the server, I guess I have to choose the 
appropriate connection and send my message there. 
I guess I would also have to implement the signal filter matching if I want to 
support this ?

Any pointers ?

Thanks
Alex


More information about the dbus mailing list