12 #include <azmq/socket.hpp>
13 #include <azmq/message.hpp>
14 #include <azmq/util/scope_guard.hpp>
16 #include <boost/shared_ptr.hpp>
17 #include <boost/asio.hpp>
18 #include <boost/bind/bind.hpp>
19 #include <boost/function.hpp>
20 #include <boost/enable_shared_from_this.hpp>
28 public boost::enable_shared_from_this<DpyMwRouter>
34 DpyMwRouter(boost::asio::io_service& io, std::string routerUrl);
38 void doAsyncReceive();
39 void doSend(std::string idDealer, std::string payload);
45 boost::asio::io_service& mIo;
46 azmq::router_socket m_routerSocket;
47 std::string m_dpyMwRouterUrl;
49 std::string m_message_router_id;
50 std::string m_message_router_payload;
56 std::function<void(
const std::string &
id,
const std::string &payload)>
m_handler;