dbus_bus_get VS dbus_connection_open
frederic heem
frederic.heem at telsey.it
Fri Sep 1 09:22:01 PDT 2006
Hi,
Using dbus_connection_open instead of dbus_bus_get results in significant
differences. dbus_connection_open is used to avoid using the already running
system and session bus.
The problem is the that "org_freedesktop_DBus_request_name" method returns the
following error: "Client tried to send a message other than Hello without
being registered". Digging into the code shows that the client code that
uses "dbus_connection_open" also needs to call "dbus_bus_register". Using
dbus_bus_get internally calls dbus_connection_open and dbus_bus_register.
Why not invoking dbus_bus_register inside dbus_connection_open ?
Also, dbus-send and dbus-monitor have been modified to accept an address name
to use with dbus_connection_open. The path contains this modifications.
Cheers,
______________________________________________________________________________
--- NOTICE ---
CONFIDENTIALITY - This email and any attachments are confidential and are
intended for the addressee only. If you have received this message by
mistake, please contact us immediately and then delete the message from your
system. You must not copy, distribute, disclose or act upon the contents of
this email. Thank you.
PERSONAL DATA PROTECTION (Law by Decree 30. 06.2003 n. 196) - Personal and
corporate data submitted will be used in a correct, transparent and lawful
manner. The data collected will be processed in paper or computerized form for
the performance of contractual and lawful obligations as well as for the
effective management of business relationship. Data may be disclosed, in Italy
or abroad, for the purpose above mentioned to third parties which cooperate
with Telsey, agents, banks, factoring companies, credit recovering companies,
credit insurance companies, professional and consultants, and shipping
companies. In relation to the same purposes, data may be processed by the
following classes of executors or processors: management; administration
department; logistics and purchase department; sales department; post sales
department quality department; R&D department; IT department; legal department.
The data processor is Telsey S.p.A. The data subject may exercise all the
rights set forth in art. 7 of Law by Decree 30. 06.2003 n. 196 as reported in
in the following link http://www.telsey.it/privacy.jsp.
______________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-send-monitor.patch
Type: text/x-diff
Size: 9195 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060901/877c2ba1/dbus-send-monitor.bin
More information about the dbus
mailing list