Direct Communication
Thiago Macieira
thiago at kde.org
Tue Jul 31 20:33:16 PDT 2007
Justin Tulloss wrote:
>I am interested. By seeing that code I'll understand how client-client
>supposed to work. Also I'm using libdbus on Linux, so I might as well
> have a full understanding of how it works.
It's like the normal bus-based connections, except that you won't be
calling dbus_bus_get.
You'll instead set up one end to listen for a connection using DBusServer
(http://dbus.freedesktop.org/doc/dbus/api/html/group__DBusServer.html)
and the other will initiate the connection using dbus_connection_open.
Since there is no bus involved, that's all it takes. Note that messages
exchanged won't have sender or destination, since there's only one peer
to send messages to.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070801/f8416ada/attachment.pgp
More information about the dbus
mailing list