[zeromq-dev] zproxy (hopefully) improvements

lindleyf at gmail.com lindleyf at gmail.com
Thu Dec 5 14:52:44 CET 2013

I'm of the opinion that asserts should only be used to signal an internal problem with the library. Any external interface should instead use error codes if the input is detectably bad. So the question becomes, if you build against a lower version of ZMQ, is that an error or does it just reduce your capabilities? Can you require a minimum version, and check this at init time?

> On Dec 5, 2013, at 6:36 AM, Pieter Hintjens <ph at imatix.com> wrote:
>> On Wed, Dec 4, 2013 at 11:52 PM, Brian Knox <briank at talksum.com> wrote:
>> Just a heads up that I submitted a pull request for some work I’ve been
>> doing on zproxy to czmq:
>> https://github.com/zeromq/czmq/pull/335
> Merged :-)
>> I’m open to suggestions as to whether returning -1 for zproxy api calls that
>> aren’t supported on the version of libzmq built against is a good thing, or
>> whether I should throw asserts!
> Since it signals a build or use problem, an assert would be good
> (printing a message first). You wouldn't want to continue running when
> the application thinks it has a different version of libzmq than it
> actually has.
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list