<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 9pt;
font-family:新細明體
}
--></style>
</head>
<body class='hmmessage'>My purpose is to provide a service program to serve many client programs via peer-to-peer connections.<br><br>However, dbus-glib binding library seems not allow duplicate registration of a object with a same path.<br>(Traced into dbus_g_connection_register_g_object(), that do ignore duplicate registration just only by comparison with path name.)<br><br>Is it possible to allow setup many peer-to-peer connections to a single object?<br>Will it be OK, if I add a more criterion for duplicate registration by checking whether or not with identical connections ?<br><br><br>Please tell me if I have wrong concept about relationship of dbus connections and object path.<br>Thanks very much.<br><br><br><hr>From: atonelin@msn.com<br>To: dbus@lists.freedesktop.org<br>Subject: How with glib-bind to register multiple 'peer connections' to the same object path ?<br>Date: Tue, 6 Apr 2010 11:36:16 +0800<br><br><style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:9pt;font-family:新細明體;}
</style>
Maybe I am asking a stupid question, <br>how can I do with glib-bind to register multiple peer connections to the same object path ?<br><br>With dbus daemon, it is easy to setup a service program with a common object path to serve multiple clients.<br>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().<br><br>I hope what described above about 'duplicate registration' will not mislead you. <br>What I am really confused is why disallow to register many 'peer-to-peer connections' to one object.<br><br>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.<br><br><br>Regards<br><br>YT Lin<br><br>                                            <br><hr>Hotmail 強大的垃圾信件管理功能,值得你信賴。 <a href="https://signup.live.com/signup.aspx?id=60969" target="_blank">馬上註冊</a>
                                           <br /><hr />Hotmail 是功能強大又值得信賴的免費信箱 <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>立即使用</a></body>
</html>