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> <<a href="mailto:thiago@kde.org">thiago@kde.org</a>> 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>>Hmm looks like this may not be it. It works great except that the filter<br>>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 "mainloop" 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> PGP/GPG: 0x6EF45358; fingerprint:<br> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
<br><br><br></blockquote></div><br>