[zeromq-dev] my first experience in mixing zmq1 and zmq2 in one app

Pieter Hintjens pieterh at gmail.com
Sun Dec 27 01:23:14 CET 2009

Since 0MQ/1 and 0MQ/2 are entirely different libraries, they should be
usable together.  How about naming all functions 'zmq1_' and 'zmq2_'
and then providing two include files that define macros to rename
either of these to 'zmq_', for apps that use just one library....?

On Wed, Dec 23, 2009 at 8:06 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Pavel Gushcha wrote:
>> I we talk only about C api, there is no need to change it. we only need
>> change namespace from zmq to zmq2 in zmq sources, that are hidden from
>> zmq.h and public API. For C++ bindings it will be good to change
>> namespace zmq to zmq2.
> Sure, that's perfectly OK. I was just responding to Robin - the point
> was that although zmq1/zmq2 non-exclusivity would be a nice
> out-of-the-box feature it would heavily effect APIs for all language
> bindings (c/c++/java/lisp/python/ruby).
> Martin
> _______________________________________________
> 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