Communication between C program and node.js server
Rick Mann
rmann at latencyzero.com
Wed Mar 11 19:35:39 PDT 2015
Hi. For a couple days now I've been trying to learn how to use dbus via the libdbus C API (not glibc), and I'm having trouble figuring it out. It seems I'm missing some piece of the puzzle by where I inform dbus of the objects/methods that can be called, but it's just not clear.
I started with some example code that showed me how to create a method call message and send it; this works without reporting any errors. But when I then try to set up my node.js program (via node-dbus) to listen for the message, it complains that "The name com.latencyzero.podtique was not provided by any .service files".
So I went looking at .service files, which seem to be used for launching processes to handle the request. Thing is, I don't want to do that; my two processes are launched at boot in my system (or via other mechanism). I just want to be able to send messages back and forth between the two processes (via Unix Domain socket and dbus-daemon).
How to I register a service with dbus-daemon?
Thanks!
--
Rick Mann
rmann at latencyzero.com
More information about the dbus
mailing list