|
Boost Users : |
Subject: Re: [Boost-users] [asio] multiple simultaneous async_read calls
From: Lee Clagett (forum_at_[hidden])
Date: 2014-08-11 08:56:58
On Sun, Aug 10, 2014 at 6:52 PM, Niall Douglas <s_sourceforge_at_[hidden]>
wrote:
>
> I'd ask a simpler question: what use case is there for configuring
> multiple concurrent async reads on the same stream?
>
> On *files*, yes this makes sense. But on sockets/pipes etc, the use
> cases are not many (possibly with UDP yes, otherwise no).
>
> Niall
>
>
If you want to queue up multiple reads at a time (data to different
buffers), having the framework handle it (ASIO or OS) is easier than
writing that portion yourself.
Lee
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