[zeromq-dev] Devices and config files

Pieter Hintjens ph at imatix.com
Thu Aug 19 23:50:08 CEST 2010


On Wed, Aug 18, 2010 at 12:38 AM, Pieter Hintjens <ph at imatix.com> wrote:

> I'm playing with cJSON because it's a single source (.c/.h) and has a
> simple API that looks pleasant to use.

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.

Here's an example of the JSON format:

http://github.com/imatix/zfl/blob/develop/src/zfl_config_test.json

This is the code that parses it and configures 0MQ context and sockets:

http://github.com/imatix/zfl/blob/develop/src/zfl_config.c

-Pieter



More information about the zeromq-dev mailing list