Thanks Thiago. That was it, i had to dispatch_read_write in a while loop checking for DATA_REMAINS. Now i get all messages sent. Thanks for your help again.<br><br>-K<br><br><div><span class="gmail_quote">On 1/27/07, <b class="gmail_sendername">
Thiago Macieira</b> &lt;<a href="mailto:thiago@kde.org">thiago@kde.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Krishna R wrote:<br>&gt;Hmm looks like this may not be it. It works great except that the filter<br>&gt;func is never called to rcv the *first* message sent.<br><br>Correct. You need to verify if the dispatch status is DATA_REMAINS every
<br>time you do a read/write action (like<br>dbus_connection_send_with_reply_and_block). This means you need to wake<br>up your &quot;mainloop&quot; implementation just as if there had been activity on<br>the socket.<br><br>
--<br> Thiago Macieira - thiago (AT) <a href="http://macieira.info">macieira.info</a> - thiago (AT) <a href="http://kde.org">kde.org</a><br>&nbsp;&nbsp;PGP/GPG: 0x6EF45358; fingerprint:<br>&nbsp;&nbsp;E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
<br><br><br></blockquote></div><br>