|
Boost : |
Subject: Re: [boost] Does async_accept only access connection object raw pointer and wrapped it by shared pointer internally?
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2018-12-27 01:54:44
On Tue, Dec 25, 2018 at 10:13 PM Richard Hodges via Boost
<boost_at_[hidden]> wrote:
> What you are not doing is preserving the lifetime of the session because
> you're not storing new_session anywhere.
>
> It becomes a little easier to follow if you use a lambda:
I explain all of this in simple terms, in my CppCon 2018 presentation
titled "Get rich quick! Using Boost.Beast WebSockets and Networking
TS", available here:
<https://www.youtube.com/watch?v=7FQwAjELMek>
All of the source code for the program developed in the video is part
of Boost.Beast 1.69.0.
Regards
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk