Horizon
zmq_helper.hpp
1 #pragma once
2 #include <zmq.hpp>
3 #include <glibmm/iochannel.h>
4 
5 namespace horizon::zmq_helper {
6 // silly wrappers to dodge warnings about deprecated functions
7 // can't use the non-deprecated functions as they're not available in debian stable
8 bool recv(zmq::socket_t &sock, zmq::message_t &msg);
9 bool send(zmq::socket_t &sock, zmq::message_t &msg);
10 void subscribe_int(zmq::socket_t &sock, uint32_t value);
11 Glib::RefPtr<Glib::IOChannel> io_channel_from_socket(zmq::socket_t &sock);
12 bool can_recv(zmq::socket_t &sock);
13 void set_timeouts(zmq::socket_t &sock, int timeout);
14 std::string get_last_endpoint(const zmq::socket_t &sock);
15 } // namespace horizon::zmq_helper
zip_uint32_t uint32_t
zip_uint32_t typedef.
Definition: zip.hpp:98