I\'m using Boost.Asio for a server application that I\'m writing.
async_send
requires the caller to keep ownership of the data that is being sent until
You will need one write buffer per connection, others have been saying to use a vector per connection as was your original idea, but I would recommend for simplicity to use a vector of strings with your new approach.
Boost.ASIO has some special cases built around using strings with its buffers for writes, which make them easier to work with.
Just a thought.