From: Schmottlach, G. <gle...@ha...> - 2009-03-30 21:48:12
|
Hi - We've already hacked up the C++ binding (with Paolo's initial help) to support truly asynchronous calls along with a few other nice features. I'm not sure how far this has diverged from the current branch maintained by Andreas but you may be interested in it. I don't have the time right now to try to integrate this with what's currently available but if you're interested, and can suggest a home for it, I can make this source code available to the larger community. Also note: Asynchronous calls in a threaded D-Bus environment is generally unstable (actually a D-Bus issue - not the binding). The modified code is only experimental at this point but I have been successfully using it for the past few months. There are probably still a few bugs lurking in the background but I *think* I've found the more significant ones. -----Original Message----- From: David Kozub [mailto:zu...@li...] Sent: Monday, March 30, 2009 5:21 PM To: dbu...@li... Subject: [dbus-cplusplus-devel] Asynchronous method call Hi, I'm wondering - to what extent does libdbus-c++ support async method calls? In the sources, I see there's: PendingCall Connection::send_async(Message &message, int timeout = -1) which looks rather promising. I still haven't caught up with dbus, but... if the plumbing (Connection, PendingCall) is there and is working, all that's missing to be able to easily use these from an interface proxy is to add: InterfaceProxy::invoke_method_async() analogous to InterfaceProxy::invoke_method(), and similar to ObjectProxy(). Is that all on crack? :) Actually, I just hacked this in in my local sources... I'll c what happens. Best regards, David zu...@li... ------------------------------------------------------------------------ ------ _______________________________________________ dbus-cplusplus-devel mailing list dbu...@li... https://lists.sourceforge.net/lists/listinfo/dbus-cplusplus-devel |