Async DBusMessage reads using the C API
Robert McQueen
robert.mcqueen at collabora.co.uk
Thu Nov 3 10:31:12 PST 2005
John (J5) Palmieri wrote:
> Question about that, does the timeout generate an error on the bus like
> normal timeouts (i.e. does read_write_dispatch dispatch an error
> message)?
No, this timeout is just if you *don't* recieve a message, so there's
nothing to reply to. It's just to return control to the application
using the function so you can eg go and poll something else. Like:
while (1) {
check_some_non_dbus_source_of_events();
dbus_connection_read_write_dispatch(sleep me for 500ms);
}
Regards,
Rob
More information about the dbus
mailing list