42 using boost::asio::ip::tcp;
48 Comm(message_handler),
71 endpoint_ = *resolver.resolve({tcp::v4(),
host_,
"", boost::asio::ip::resolver_query_base::numeric_service});
77 socket_.set_option(tcp::socket::reuse_address(
true));
81 catch (boost::system::system_error e)
96 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)
98 socket_.async_receive(buffer, handler);
102 boost::function<
void(
const boost::system::error_code&,
size_t)> handler)
104 socket_.async_send(buffer, handler);