Is there any advantage in terms of the time it takes to get the data buffer on the wire if you use
boost::asio::write(m_socket, asio::buffer(dataOut_, len), asio::transfer_all());
instead
boost::asio::async_write(m_socket, boost::asio::buffer(hbs, sizeof(hbs)), boost::bind(&Client::handle_pulse, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
Al kurlansky
source share