Zth (libzth)

Functions

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...
 

Detailed Description

Function Documentation

◆ zth_zmq_context()

void* zth_zmq_context ( )

Returns the (only) 0MQ context, used by all fibers.

This is a C-wrapper for zth::zmq::zmq_context().

Definition at line 54 of file zmq.h.

◆ zth_zmq_msg_recv()

int zth_zmq_msg_recv ( zmq_msg_t *  msg,
void *  socket,
int  flags 
)

Fiber-aware wrapper for 0MQ's zmq_msg_recv().

This is a C-wrapper for zth::zmq::zmq_msg_recv().

Definition at line 84 of file zmq.h.

◆ zth_zmq_msg_send()

int zth_zmq_msg_send ( zmq_msg_t *  msg,
void *  socket,
int  flags 
)

Fiber-aware wrapper for 0MQ's zmq_msg_send().

This is a C-wrapper for zth::zmq::zmq_msg_send().

Definition at line 74 of file zmq.h.

◆ zth_zmq_recv()

int zth_zmq_recv ( void *  socket,
void *  buf,
size_t  len,
int  flags 
)

Fiber-aware wrapper for 0MQ's zmq_recv().

This is a C-wrapper for zth::zmq::zmq_recv().

Definition at line 105 of file zmq.h.

◆ zth_zmq_send()

int zth_zmq_send ( void *  socket,
void const *  buf,
size_t  len,
int  flags 
)

Fiber-aware wrapper for 0MQ's zmq_send().

This is a C-wrapper for zth::zmq::zmq_send().

Definition at line 95 of file zmq.h.

◆ zth_zmq_send_const()

int zth_zmq_send_const ( void *  socket,
void const *  buf,
size_t  len,
int  flags 
)

Fiber-aware wrapper for 0MQ's zmq_send_const().

This is a C-wrapper for zth::zmq::zmq_send_const().

Definition at line 116 of file zmq.h.

◆ zth_zmq_socket()

void* zth_zmq_socket ( int  type)

Fiber-aware wrapper for 0MQ's zmq_socket().

The context is implicit, as all fibers run in the same thread and share the context.

This is a C-wrapper for zth::zmq::zmq_socket().

Examples
zmq.cpp.

Definition at line 64 of file zmq.h.