Zth (libzth)
zmq.h File Reference
#include <libzth/macros.h>
#include <zmq.h>

Go to the source code of this file.

Namespaces

 zth
 
 zth::zmq
 

Macros

#define ZTH_REDIRECT_ZMQ   1
 
#define zmq_ctx_new   zth_zmq_context
 
#define zmq_ctx_term(c)
 
#define zmq_socket(c, t)   zth_zmq_socket(t)
 
#define zmq_msg_send   zth_zmq_msg_send
 
#define zmq_msg_recv   zth_zmq_msg_recv
 
#define zmq_send   zth_zmq_send
 
#define zmq_recv   zth_zmq_recv
 
#define zmq_send_const   zth_zmq_send_const
 

Functions

void * zth::zmq::zmq_context ()
 Returns the (only) 0MQ context, used by all fibers. More...
 
void * zth::zmq::zmq_socket (int type)
 Fiber-aware wrapper for 0MQ's zmq_socket(). More...
 
int zth::zmq::zmq_msg_send (zmq_msg_t *msg, void *socket, int flags)
 Fiber-aware wrapper for 0MQ's zmq_msg_send(). More...
 
int zth::zmq::zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags)
 Fiber-aware wrapper for 0MQ's zmq_msg_recv(). More...
 
int zth::zmq::zmq_send (void *socket, void const *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_send(). More...
 
int zth::zmq::zmq_recv (void *socket, void *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_recv(). More...
 
int zth::zmq::zmq_send_const (void *socket, void const *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_send_const(). More...
 
void * zth_zmq_context ()
 Returns the (only) 0MQ context, used by all fibers. More...
 
void * zth_zmq_socket (int type)
 Fiber-aware wrapper for 0MQ's zmq_socket(). More...
 
int zth_zmq_msg_send (zmq_msg_t *msg, void *socket, int flags)
 Fiber-aware wrapper for 0MQ's zmq_msg_send(). More...
 
int zth_zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags)
 Fiber-aware wrapper for 0MQ's zmq_msg_recv(). More...
 
int zth_zmq_send (void *socket, void const *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_send(). More...
 
int zth_zmq_recv (void *socket, void *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_recv(). More...
 
int zth_zmq_send_const (void *socket, void const *buf, size_t len, int flags)
 Fiber-aware wrapper for 0MQ's zmq_send_const(). More...
 

Macro Definition Documentation

◆ zmq_ctx_new

#define zmq_ctx_new   zth_zmq_context

Definition at line 130 of file zmq.h.

◆ zmq_ctx_term

#define zmq_ctx_term (   c)

Definition at line 131 of file zmq.h.

◆ zmq_msg_recv

#define zmq_msg_recv   zth_zmq_msg_recv

Definition at line 134 of file zmq.h.

◆ zmq_msg_send

#define zmq_msg_send   zth_zmq_msg_send

Definition at line 133 of file zmq.h.

◆ zmq_recv

#define zmq_recv   zth_zmq_recv
Examples
zmq.cpp.

Definition at line 136 of file zmq.h.

◆ zmq_send

#define zmq_send   zth_zmq_send
Examples
zmq.cpp.

Definition at line 135 of file zmq.h.

◆ zmq_send_const

#define zmq_send_const   zth_zmq_send_const

Definition at line 137 of file zmq.h.

◆ zmq_socket

#define zmq_socket (   c,
 
)    zth_zmq_socket(t)

Definition at line 132 of file zmq.h.

◆ ZTH_REDIRECT_ZMQ

#define ZTH_REDIRECT_ZMQ   1

Definition at line 27 of file zmq.h.