6 #ifndef NANOSOCKETS_SOCKETS_ASYNC_REPLY_SOCKET_HPP 7 #define NANOSOCKETS_SOCKETS_ASYNC_REPLY_SOCKET_HPP 12 #include <boost/function.hpp> 13 #include <core/parallel/pthread_tools.hpp> 14 #include <core/system/nanosockets/zmq_msg_vector.hpp> 15 #include <core/export.hpp> 63 typedef boost::function<bool (zmq_msg_vector& recv,
76 std::string bind_address =
"");
89 std::string get_bound_address();
97 void* control =
nullptr;
101 std::string local_address;
102 callback_type callback;
104 std::queue<job> jobqueue;
107 bool queue_terminate =
false;
109 void thread_function();
110 void poll_function();
112 void process_job(job j);
boost::function< bool(zmq_msg_vector &recv, zmq_msg_vector &reply)> callback_type