// Emulation of widely-used 2.x socket options CZMQ_EXPORT void zsocket_set_hwm (void *zocket, int hwm);
// -------------------------------------------------------------------------- // Set socket high-water mark, emulating 2.x API void zsocket_set_hwm (void *zocket, int hwm) { zsocket_set_sndhwm (zocket, hwm); zsocket_set_rcvhwm (zocket, hwm); } zocket = zsocket_new (ctx, ZMQ_SUB); zsocket_set_hwm (zocket, 1);