11 using boost::asio::ip::udp;
29 std::stringstream sPort;
32 udp::resolver::query query(udp::v4(), ip_address, sPort.str());
34 boost::system::error_code ec;
36 socket_.connect(sender_endpoint_, ec);
38 if (ec.value() == boost::system::errc::success)
42 else if (ec.value() == boost::asio::error::invalid_argument)
58 boost::system::error_code ec;
61 if (ec.value() == boost::system::errc::success)
77 const size_t &buf_size,
83 boost::system::error_code ec;
86 if (ec.value() == boost::system::errc::success)
101 boost::system::error_code ec;
104 if (ec.value() == boost::system::errc::success)
boost::asio::io_service io_service_
return_statuses write(unsigned char *msg, const size_t &msg_size)
return_statuses read(unsigned char *msg, const size_t &buf_size, size_t &bytes_read)
boost::asio::ip::udp::endpoint sender_endpoint_
boost::asio::ip::udp::socket socket_
return_statuses open(const char *ip_address, const int &port)