send a scatter gather buffer list instead of string

This commit is contained in:
Peter Thorson
2011-12-28 08:58:10 -06:00
parent 9145a43e47
commit 28c32cf3cf

View File

@@ -552,9 +552,13 @@ protected:
m_write_state = WRITING;
}
std::vector<boost::asio::mutable_buffer> data;
data.push_back(boost::asio::buffer(*m_write_queue.front()));
boost::asio::async_write(
socket_type::get_socket(),
boost::asio::buffer(*m_write_queue.front()),
data,
boost::bind(
&type::handle_write,
type::shared_from_this(),