|
|
Subscribe / Log in / New account

Kernel prepatch 4.0-rc4

Kernel prepatch 4.0-rc4

Posted Mar 18, 2015 17:52 UTC (Wed) by sorokin (guest, #88478)
In reply to: Kernel prepatch 4.0-rc4 by MrWim
Parent article: Kernel prepatch 4.0-rc4

> I would recommend taking another look at DBus. It doesn't try to hide the asynchronous nature of IPC, which I understand is one of the underlying reasons you had issues with DCOM.

If they provide some easy to use asynchronous API I think it has merit. Do you know some good C++ bindings for D-Bus (that is aware of standard library and typical C++ idioms)? A quick googling gives dbustl and boost-dbus. Probably there is something else.


to post comments

Kernel prepatch 4.0-rc4

Posted Mar 18, 2015 18:07 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

Just use the original libdbus ( http://dbus.freedesktop.org/ ). There are several wrappers but they are simply not worth it.

Though dbus-boost looks really good (if you happen to use Boost.Asio).

Kernel prepatch 4.0-rc4

Posted Mar 19, 2015 22:28 UTC (Thu) by mbiebl (subscriber, #41876) [Link]

Kernel prepatch 4.0-rc4

Posted Mar 19, 2015 22:46 UTC (Thu) by MrWim (subscriber, #47432) [Link]

If they provide some easy to use asynchronous API I think it has merit. Do you know some good C++ bindings for D-Bus (that is aware of standard library and typical C++ idioms)?

It's been a few years since I've looked at this. One of the problems with C++ is that everyone has a different idea of "standard idioms" and the subset of C++ that is reasonable and good taste.

Back at the time I was using a heavily modified version of dbus-c++ with a template built in to generate code from the DBus XML that fitted the idioms of our project. In that case we had an in-house implementation of futures which made async about as convenient as possible with C++03. I think given our requirements at the time it would have been easier to write on top of libdbus itself, rather than starting with dbus-c++, but that's easy to say in hindsight.

A quick googling gives dbustl and boost-dbus. Probably there is something else.

I've not looked at either of these before, as the work I was doing pre-dates them. Neither seems to include a code-generator, so there is a limit to how convenient they're going to be, depending on your use-case.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds