Zth (libzth)

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

Detailed Description

Function Documentation

◆ zmq_context()

void * zth::zmq::zmq_context ( )

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

Definition at line 53 of file zmq.cpp.

◆ zmq_msg_recv()

int zth::zmq::zmq_msg_recv ( zmq_msg_t *  msg,
void *  socket,
int  flags 
)

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

Definition at line 94 of file zmq.cpp.

◆ zmq_msg_send()

int zth::zmq::zmq_msg_send ( zmq_msg_t *  msg,
void *  socket,
int  flags 
)

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

Definition at line 73 of file zmq.cpp.

◆ zmq_recv()

int zth::zmq::zmq_recv ( void *  socket,
void *  buf,
size_t  len,
int  flags 
)

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

Definition at line 136 of file zmq.cpp.

◆ zmq_send()

int zth::zmq::zmq_send ( void *  socket,
void const *  buf,
size_t  len,
int  flags 
)

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

Definition at line 115 of file zmq.cpp.

◆ zmq_send_const()

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

Definition at line 157 of file zmq.cpp.

◆ zmq_socket()

void * zth::zmq::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.

Definition at line 64 of file zmq.cpp.