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.hpp> 19 #include <boost/function.hpp> 20 #include <boost/enable_shared_from_this.hpp> 22 namespace asio = boost::asio;
27 class DpyMwDealer:
public boost::enable_shared_from_this<DpyMwDealer>
34 DpyMwDealer(boost::asio::io_service& io, std::string routerUrl);
39 void sendData(std::string msg);
45 void doAsyncReceive();
51 boost::asio::io_service& mIo;
52 azmq::dealer_socket m_dealerSocket;
53 std::string m_RouterUrl;
55 std::string m_message_router;
Dealer class.
Definition: dpyMwDealer.h:27
std::function< void(const std::string &)> m_handler
Handler function to call from the service.
Definition: dpyMwDealer.h:61