|
Boost Users : |
Subject: Re: [Boost-users] [Beast] Downloading multiple urls in parallel
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2018-09-13 19:13:02
Hi,
Are there any examples in the docs as to how to do this?
Does the http client do this under the hood?
Kind regards
Sean.
-----Original Message-----
From: Boost-users <boost-users-bounces_at_[hidden]> On Behalf Of Vinnie Falco via Boost-users
Sent: 13 September 2018 18:58
To: boost-users_at_[hidden]
Cc: Vinnie Falco <vinnie.falco_at_[hidden]>
Subject: Re: [Boost-users] [Beast] Downloading multiple urls in parallel
On Thu, Sep 13, 2018 at 10:49 AM Sean Farrow via Boost-users <boost-users_at_[hidden]> wrote:
> Are there functions within beast to allow me to start downloading multiple urlâs in parallel and then handle each returned result with a different continuation function?
Yes. This is accomplished by calling `boost::beast::http::async_read` on two or more different instances of connected sockets.
Regards
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
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