38 #ifndef ASYNC_COMM_UDP_H 39 #define ASYNC_COMM_UDP_H 43 #include <boost/asio.hpp> 44 #include <boost/function.hpp> 78 void do_async_read(
const boost::asio::mutable_buffers_1 &buffer,
79 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)
override;
81 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)
override;
96 #endif // ASYNC_COMM_UDP_H boost::asio::ip::udp::endpoint bind_endpoint_
static constexpr uint16_t DEFAULT_REMOTE_PORT
boost::asio::ip::udp::socket socket_
static constexpr auto DEFAULT_REMOTE_HOST
static constexpr uint16_t DEFAULT_BIND_PORT
Abstract base class for an asynchronous communication port.
boost::asio::ip::udp::endpoint remote_endpoint_
static constexpr auto DEFAULT_BIND_HOST
UDP(std::string bind_host=DEFAULT_BIND_HOST, uint16_t bind_port=DEFAULT_BIND_PORT, std::string remote_host=DEFAULT_REMOTE_HOST, uint16_t remote_port=DEFAULT_REMOTE_PORT)
Bind a UDP socket.
Asynchronous communication class for a UDP socket.
void do_async_read(const boost::asio::mutable_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) override
void do_async_write(const boost::asio::const_buffers_1 &buffer, boost::function< void(const boost::system::error_code &, size_t)> handler) override