How to create a DBus server
John (J5) Palmieri
johnp at redhat.com
Wed Jan 18 05:06:08 PST 2006
On Wed, 2006-01-18 at 11:59 +0100, Jakub Piotr Cłapa wrote:
> 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.
It is supported. HAL uses p2p to avoid spamming the bus. However it is
a bit more complicated than using the bus to communicate. Tang, can you
describe how you want to use D-Bus?
--
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus
mailing list