Communication between C program and node.js server

Rick Mann <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
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
[email protected]


_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.