How to create a DBus server

Jakub Piotr Cłapa jpc at pld-linux.org
Wed Jan 18 02:59:25 PST 2006


tang wrote:
> Hi everyone,
> 
> i found some codes like these:
> 
> server = dbus_server_listen( "unix:tmpdir=/tmp",  &error );
> ...
> dbus_server_set_new_connection_function( server,
>                                            dbusNewConnection,
>                                            0,  0 );
> 
> 
> but i don't know what's the next thing to do?
> How to use the server addree?
> How to connect the server?
> 
> who can get me a full example(c/s)? or a document.

That's probably not really supported (it could be, but allowing p2p 
communication is not the main goal). DBus is meant to be used with a 
shared server (called message bus) which can be global to a machine or 
local to the user's session.


More information about the dbus mailing list