23 #ifdef ZTH_HAVE_LIBZMQ
26 # ifndef ZTH_REDIRECT_ZMQ
27 # define ZTH_REDIRECT_ZMQ 1
36 int zmq_msg_send(zmq_msg_t* msg,
void* socket,
int flags);
37 int zmq_msg_recv(zmq_msg_t* msg,
void* socket,
int flags);
38 int zmq_send(
void* socket,
void const* buf,
size_t len,
int flags);
39 int zmq_recv(
void* socket,
void* buf,
size_t len,
int flags);
40 int zmq_send_const(
void* socket,
void const* buf,
size_t len,
int flags);
125 ZTH_EXPORT
int zth_zmq_send(
void* socket,
void const* buf,
size_t len,
int flags);
126 ZTH_EXPORT
int zth_zmq_recv(
void* socket,
void* buf,
size_t len,
int flags);
127 ZTH_EXPORT
int zth_zmq_send_const(
void* socket,
void const* buf,
size_t len,
int flags);
130 # define zmq_ctx_new zth_zmq_context
131 # define zmq_ctx_term(c)
132 # define zmq_socket(c, t) zth_zmq_socket(t)
133 # define zmq_msg_send zth_zmq_msg_send
134 # define zmq_msg_recv zth_zmq_msg_recv
135 # define zmq_send zth_zmq_send
136 # define zmq_recv zth_zmq_recv
137 # define zmq_send_const zth_zmq_send_const
void * zth_zmq_socket(int type)
Fiber-aware wrapper for 0MQ's zmq_socket().
int zth_zmq_recv(void *socket, void *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_recv().
int zth_zmq_msg_recv(zmq_msg_t *msg, void *socket, int flags)
Fiber-aware wrapper for 0MQ's zmq_msg_recv().
int zth_zmq_send_const(void *socket, void const *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_send_const().
int zth_zmq_send(void *socket, void const *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_send().
int zth_zmq_msg_send(zmq_msg_t *msg, void *socket, int flags)
Fiber-aware wrapper for 0MQ's zmq_msg_send().
void * zth_zmq_context()
Returns the (only) 0MQ context, used by all fibers.
int zmq_msg_send(zmq_msg_t *msg, void *socket, int flags)
Fiber-aware wrapper for 0MQ's zmq_msg_send().
int zmq_recv(void *socket, void *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_recv().
void * zmq_socket(int type)
Fiber-aware wrapper for 0MQ's zmq_socket().
int zmq_send(void *socket, void const *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_send().
int zmq_msg_recv(zmq_msg_t *msg, void *socket, int flags)
Fiber-aware wrapper for 0MQ's zmq_msg_recv().
void * zmq_context()
Returns the (only) 0MQ context, used by all fibers.
int zmq_send_const(void *socket, void const *buf, size_t len, int flags)
Fiber-aware wrapper for 0MQ's zmq_send_const().