register many peer-to-peer connections to one object path ?
Lin YT
atonelin at msn.com
Sun Apr 11 20:25:45 PDT 2010
My purpose is to provide a service program to serve many client programs via peer-to-peer connections.
However, dbus-glib binding library seems not allow duplicate registration of a object with a same path.
(Traced into dbus_g_connection_register_g_object(), that do ignore duplicate registration just only by comparison with path name.)
Is it possible to allow setup many peer-to-peer connections to a single object?
Will it be OK, if I add a more criterion for duplicate registration by checking whether or not with identical connections ?
Please tell me if I have wrong concept about relationship of dbus connections and object path.
Thanks very much.
From: atonelin at msn.com
To: dbus at lists.freedesktop.org
Subject: How with glib-bind to register multiple 'peer connections' to the same object path ?
Date: Tue, 6 Apr 2010 11:36:16 +0800
Maybe I am asking a stupid question,
how can I do with glib-bind to register multiple peer connections to the same object path ?
With dbus daemon, it is easy to setup a service program with a common object path to serve multiple clients.
With peer-to-peer connection, the service program has to setup a connections for per client request with 'dbus_connection_open()'. However, Dbus-Glib would "silently ignore duplicate registrations" within dbus_g_connection_register_g_object().
I hope what described above about 'duplicate registration' will not mislead you.
What I am really confused is why disallow to register many 'peer-to-peer connections' to one object.
I know "An object path is a name used to refer to an object instance", that is also the reason I do not want to do a workaround with many different path names to avoid the checking of duplicate registrations.
Regards
YT Lin
Hotmail 強大的垃圾信件管理功能,值得你信賴。 馬上註冊
_________________________________________________________________
Hotmail 是功能強大又值得信賴的免費信箱
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100412/7e4fd5be/attachment.html>
More information about the dbus
mailing list