[zeromq-dev] Devices and config files

Pieter Hintjens ph at imatix.com
Fri Aug 20 00:20:18 CEST 2010


On Thu, Aug 19, 2010 at 11:50 PM, Pieter Hintjens <ph at imatix.com> wrote:

> OK, have parsing of JSON config files working, it's pretty neat.
> cJSON is not pretty code but the API is clean and it's been easy to
> use...

And a working device that is fully configurable:

http://github.com/imatix/zfl/tree/develop/examples

The JSON looks kind of like this:

    {
        "verbose": true,
        "type": "forwarder",
        "iothreads": 2,
        "frontend": {
            "option": {
                "hwm": 1000,
                "subscribe": [ "coffee", "tea", "juice" ],
                "subscribe": "milk"
            },
            "connect": [ "tcp://eth0:5556", "inproc://mydevice" ],
        },
        "backend": {
            "bind": "tcp://eth0:5556"
        }
    }

-
Pieter Hintjens
iMatix - www.imatix.com



More information about the zeromq-dev mailing list