zedshaw/mongrel2 — pull request #124 by pjkundert (2012-04-24 19:30:51+00:00)
Title: Feature/anyzmq

Implements compatibility with 0MQ 2.1.X and 3.1.X APIs, and converts to use the 0MQ 3.1.1 API for zmq_msg_send, zmq_msg_recv and zmq_poll.

Instead of #include <zmq.h>, we now #include "zmq_compat.h", which implements the 0MQ 3.1.1 API in terms of the 0MQ 3.1.0 or 2.1.X APIs (whichever is provided at compile time). Preserves the return value assumptions of mqsend/mqrecv as originally implemented on the 0MQ 2.1.X API, when compiled with 0MQ 3.1.X. All unit tests pass, when compiled with 0MQ 2.1.11, 3.1.0 and 3.1.1.