[zeromq-dev] More suggested Shim Macro's

Stefan de Konink stefan at konink.de
Sat Dec 22 13:25:07 CET 2012


I guess there could be some more suggested Shim macro's;

<http://www.zeromq.org/docs:3-1-upgrade>

#ifndef ZMQ_DONTWAIT
#   define ZMQ_DONTWAIT     ZMQ_NOBLOCK
#endif
#if ZMQ_VERSION_MAJOR == 2
#   define zmq_msg_send(msg,sock,opt) zmq_send (sock, msg, opt)
#   define zmq_msg_recv(msg,sock,opt) zmq_recv (sock, msg, opt)
#   define zmq_ctx_destroy(context) zmq_term(context)
#   define ZMQ_POLL_MSEC    1000        //  zmq_poll is usec
#   define more_t int64_t
#   define ZMQ_SNDHWM ZMQ_HWM
#   define ZMQ_RCVHWM ZMQ_HWM
#elif ZMQ_VERSION_MAJOR == 3
#   define ZMQ_POLL_MSEC    1           //  zmq_poll is msec
#   define more_t int
#endif

Stefan



More information about the zeromq-dev mailing list