Boost logo

Boost Users :

Subject: Re: [Boost-users] Is there any asynchronous file read/write Boost lib?
From: Stephan Menzel (stephan.menzel_at_[hidden])
Date: 2010-07-06 02:44:55


On Mon, Jul 5, 2010 at 6:15 PM, Bo Xie <xiebopublic_at_[hidden]> wrote:
> As I know, Boost.Asio is for asynchronous network socket, not asynchronous
> file read/write.  Is there any asynchronous file read/write Boost (or other
> cross platform) lib?

On mmap() capable platforms your can actually use asio.
To do so, mmap your file and create a asio::mutable_buffer out of the
resulting ptr. On that you can do your asynchronous IO.

HTH,
Stephan


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