42 using boost::asio::ip::udp;
48 UDP::UDP(std::string bind_host, uint16_t bind_port, std::string remote_host, uint16_t remote_port,
50 Comm(message_handler),
51 bind_host_(bind_host),
52 bind_port_(bind_port),
53 remote_host_(remote_host),
54 remote_port_(remote_port),
76 boost::asio::ip::resolver_query_base::numeric_service});
80 boost::asio::ip::resolver_query_base::numeric_service});
86 socket_.set_option(udp::socket::reuse_address(
true));
90 catch (boost::system::system_error e)
105 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)
111 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)