Boost Users :
Subject: Re: [Boost-users] ASIO async I/O with iostream?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-12-09 16:18:55
> I found an example (below) but it seems to be pretty much the same as my
> current code to write to a character array and copy the buffer into the stream.
The advantage of asio::streambuf is that it has input and output
areas, so you can perform i/o in a convenient manner. Look into
examples/reference/tutorial for details.
> It also looks like it might choke if the read was larger than 512 bytes.
It will not "choke", the completion handler will be called when it's full.
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