Re: [asio-users] Request for native scatter/gather io support on windows
Brought to you by:
chris_kohlhoff
From: Christopher K. <ch...@ko...> - 2009-06-26 23:27:10
|
On Fri, 26 Jun 2009 16:19 -0500, "Zachary Turner" <div...@gm...> wrote: > Would it be possible in subsequent versions of ASIO to provide a class > such as win_iocp_file_handle_service whose implementations will use > functions ReadFileScatter and WriteFileGather instead of ReadFile and > WriteFile? This only works on files so it could not just replace the > existing implementation. I noticed that for sockets the builtin > scatter/gather support from WSASend / WSARecv is being used, so I > would think it could be used here as well. Unfortunately, ReadFileScatter and WriteFileGather seem to be a lot more restrictive that WSASend and WSARecv, in that each buffer must be page aligned and one page big. It needs a bit more thought on how to incorporate it nicely, so I think better to plan to stick with overlapped_ptr for now. Cheers, Chris |