Beispiel #1
0
	void on_next(const core::monitor::message& msg)
	{
		auto data_ptr = make_safe<std::vector<char>>(write_osc_event(msg));

		socket_.async_send_to(boost::asio::buffer(*data_ptr), 
							  endpoint_,
							  boost::bind(&impl::handle_send_to, this,
							  boost::asio::placeholders::error,
							  boost::asio::placeholders::bytes_transferred));		
	}	
 void
 sendToGroup(udp::socket& sock, const std::vector<uint8_t>& buf, bool needToCheck = true) const
 {
   sock.async_send_to(boost::asio::buffer(buf), remoteMcastEp,
     [needToCheck] (const auto& error, size_t) {
       if (needToCheck) {
         BOOST_REQUIRE_EQUAL(error, boost::system::errc::success);
       }
     });
 }