Signals & threads - low level C API [Newbie question]

Krishna R sith.list at gmail.com
Sun Jan 28 11:20:38 PST 2007


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.

-K

On 1/27/07, Thiago Macieira <thiago at kde.org> wrote:
>
> Krishna R wrote:
> >Hmm looks like this may not be it. It works great except that the filter
> >func is never called to rcv the *first* message sent.
>
> Correct. You need to verify if the dispatch status is DATA_REMAINS every
> time you do a read/write action (like
> dbus_connection_send_with_reply_and_block). This means you need to wake
> up your "mainloop" implementation just as if there had been activity on
> the socket.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   PGP/GPG: 0x6EF45358; fingerprint:
>   E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20070128/d338ebcf/attachment.html


More information about the dbus mailing list