[zeromq-dev] [PATCH] Add options to remote_thr and local_thr

Martin Lucina mato at kotelna.sk
Mon Nov 29 10:27:40 CET 2010


steven.mccoy at miru.hk said:
> This has been annoying for a while, so I've added a feeble parameter parser for
> the PGM options.

There's lots of useful options that can and should be added to all the perf
tests, not just *_thr.

For parsing, rather than doing it by hand the best approach would be to
nick a suitably licensed and easy to port implementation of getopt()
somewhere.

For the error reporting, please use the consistent conventions:

1) fprintf (stderr, "progname: Error in foobar() call: %s", (strerror of errno)).

2) exit (1) rather than return -1;

-mato



More information about the zeromq-dev mailing list