Boost logo

Boost Users :

Subject: [Boost-users] Boost asio query
From: James Barlow-Bignell (james_at_[hidden])
Date: 2012-02-01 14:58:12



Could anyone advise me on the correct way to receive data from a socket into
a streambuf with asio?


- Read into a new streambuf for each framed TCP message, and pass
the streambufs themselves around within the application, or:

- Read into a single streambuf for each socket, and copy each
message into a std::vector to pass around?


Whichever way I'm passing a 'message' around, it would be great if I could
parse it easily using istream or similar, but the documentation is a little
unclear to me.


Any advice greatly appreciated!



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at