<div>Hello,</div>
<div> </div>
<div>I am now using DBUS (have been ported to eCos) under TCP mode. I find some useful code in the mail achives by directly call the low level C API, which connect to the daemon as follows.</div>
<div> </div>
<div>#define REMOTE_ADDRESS "tcp:host=x.x.x.x, port=xxxx, family=ipv4"</div>
<div>conn = dbus_connection_open(REMOTE_ADDRESS, &error);</div>
<div>dbus_bus_register(conn, &error); </div>
<div>......</div>
<div> </div>
<div>The above code works fine on linux, but not on eCos. The client cannot register itself on the daemon.</div>
<div>I got the reason by capturing packets over the wire. And I found the failure was caused by NO credentials-passing nul byte was send right after the tcp connection established.</div>
<div> </div>
<div>I reviewed the source of the C APIs and didn't find the code piece used for sending out the nul byte.</div>
<div>Then I tried to add some code into the send_auth(..) method, which will set nul to the first byte of the first packet sent out after the tcp connection established. This did the trick. But I still don't think it's a really good idea by adding extra codes. </div>
<div> </div>
<div>Could you give me some hint to locate the original code for sending out the nul byte?</div>
<div> </div>
<div><br><em>Thanks and Regards,<br>Jerome</em><br></div>