Query regrading message queue

Havoc Pennington hp at pobox.com
Sat Apr 19 08:48:10 PDT 2008


On Sat, Apr 19, 2008 at 11:17 AM, vasanth raj <vasuvraj21 at gmail.com> wrote:
> 1)Actually i am sending a message amd i want to get to know wat is the
> outgoing size so when i use dbus_connection_get_outgoing_size it still
> returns "0" why is this so..

The message was already sent, so it's not in the outgoing queue. The
queue only contains messages that could not be immediately shoved over
the socket.

> 2)for the second issue i am getting only one reply and when i try to borrow
> still i am able to borrow .. as per the description of
> dbus_connection_send_with_reply_and_block it as to empty the message queue
> rite...

There are messages on the incoming queue that are not replies and that
you didn't explicitly ask for. When you borrow, you can get these.
send_with_reply_and_block does not empty the queue, it only removes
the one reply that matches the message you sent, it does not remove
anything else.


More information about the dbus mailing list