<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Starting successfully the server like this:<br>
<blockquote>
  <pre>DBusServer *server=dbus_server_listen(address, &amp;err);</pre>
  <pre>... no error indicated, hence: ...</pre>
  <pre>&nbsp;&nbsp;&nbsp; dbus_server_set_new_connection_function(server, new_connection_callback,&nbsp;&nbsp;&nbsp; // callback function
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ccb, // *data
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (void (*)(void*)) RexxFreeMemory // memory free function
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );</pre>
</blockquote>
To connect to the server using from another session using:<br>
<blockquote>
  <pre>   DBusConnection *conn=dbus_connection_open_private(address, &amp;err);

... no error indicated ...
  </pre>
</blockquote>
<br>
The problem: using the addresses "unix:path=/tmp/dbus-test" or
"tcp:host=localhost,port=23000,family=ipv4;" allows to run
dbus_server_listen() and doing a dbus_connection_open_private() with no
errors. [I can pass the pointers to respective dbus-functions.]<br>
<br>
However, the registered new_connection_callback()-function gets never
invoked and if sending messages from the client no answers are
received, but rather timeouts occur. Here's the signature that compiles
successfully:<br>
<blockquote>
  <pre>void new_connection_callback (DBusServer *server, DBusConnection *conn, void *data) {...}

  </pre>
</blockquote>
When killing the server, then a pending call to the server from the
client sessions stops (with a "org.freedesktop.DBus.Error.NoReply"
error message).<br>
<br>
This is running on Ubuntu 64 with dbus 1.4.0.<br>
<br>
What could be the reason(s) that the new_connection_callback()-function
does not get invoked? Are there any additional steps that need to be
taken in order for the client to be able to successfully connect to the
server and become able to communicate with it?<br>
<br>
---rony<br>
<br>
<br>
<br>
<br>
</body>
</html>