Boost logo

Boost Users :

From: james.vanns_at_[hidden]
Date: 2008-06-03 12:58:26


Hi, I was wondering if anyone has any experience or knows off the top of their head if it is possible (or even sensible) to use the boost.circular_buffer class as the underlying buffer for boost.asio socket reads and writes?

I.e.

boost::circular_buffer<char> cb (1024);
bytes_transferred = sock.read (boost::asio::buffer (cb));

Similarly with write().

Regards,

Jim

-- 
James Vanns
Systems Programmer
Framestore CFC Ltd.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net