ZIO
Python and C++ interface to ZeroMQ and Zyre
Namespaces | Typedefs | Functions | Variables
util.hpp File Reference
#include "zio/cppzmq.hpp"
#include <string>
Include dependency graph for util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 zio
 implementation of ZIO data flow protocol endpoints
 

Typedefs

typedef std::chrono::milliseconds zio::time_unit_t
 
typedef std::string zio::remote_identity_t
 

Functions

remote_identity_t zio::recv_serverish (socket_t &socket, multipart_t &mmsg)
 
remote_identity_t zio::recv_server (socket_t &server_socket, multipart_t &mmsg)
 
remote_identity_t zio::recv_router (socket_t &router_socket, multipart_t &mmsg)
 
void zio::send_serverish (socket_t &socket, multipart_t &mmsg, remote_identity_t rid)
 
void zio::send_server (socket_t &server_socket, multipart_t &mmsg, remote_identity_t rid)
 
void zio::send_router (socket_t &router_socket, multipart_t &mmsg, remote_identity_t rid)
 
void zio::recv_clientish (socket_t &socket, multipart_t &mmsg)
 
void zio::recv_client (socket_t &client_socket, multipart_t &mmsg)
 
void zio::recv_dealer (socket_t &dealer_socket, multipart_t &mmsg)
 
void zio::send_clientish (socket_t &socket, multipart_t &mmsg)
 
void zio::send_client (socket_t &client_socket, multipart_t &mmsg)
 
void zio::send_dealer (socket_t &dealer_socket, multipart_t &mmsg)
 
std::chrono::milliseconds zio::now_ms ()
 
std::chrono::microseconds zio::now_us ()
 
void zio::sleep_ms (std::chrono::milliseconds zzz)
 
bool zio::interrupted ()
 
void zio::catch_signals ()
 

Variables

const int zio::HEARTBEAT_LIVENESS = 3
 
const time_unit_t zio::HEARTBEAT_INTERVAL {2500}
 
const time_unit_t zio::HEARTBEAT_EXPIRY {HEARTBEAT_INTERVAL * HEARTBEAT_LIVENESS}