By "hell of a lot easier" this is an example of what I mean: I've been
working on a GNUnet library for nodejs. Just to do something simple like
query the arm service for a list of services involves writing pages of
code to read the config file, find the socket arm is listening on, pack
up and send a GNUNET_ARM_Message then listen for a response and parse it.

By contrast, if it was using dbus, an entire script to list the running
services would look like this:

    #!/usr/bin/node
    var dbus = require("dbus-native");
    var systemBus = dbus.systemBus();
    systemBus.getService("org.gnunet.arm").getInterface("/",
"org.gnunet.arm", function(err, arm) {
        arm.request_service_list(function(err, list) {
            console.log(list); // list is an array of service names
        });
    });


_______________________________________________
GNUnet-developers mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnunet-developers

Reply via email to