Where/when is the buffer deleted in boost::asio::async_write(..) for the code provided
The code below works and works well for millions of messages on a daily basis. My question how/where does “msg” that is set up as a const vector get deleted if in fact that is what’s happening? I do not do anything in the completion handler to remove it.
Thanks
Where/when is the buffer deleted in boost::asio::async_write(..) for the code provided
The code below works and works well for millions of messages on a daily basis. My question how/where does “msg” that is set up as a const vector get deleted if in fact that is what’s happening? I do not do anything in the completion handler to remove it.
Thanks
How to correctly use enable_shared_from_this with io_context
I am trying to understand different scenarios of cyclic references while using ioContext and shared_ptr and i stumbled into this.
How to correctly use enable_shared_from_this with io_context
I am trying to understand different scenarios of cyclic references while using ioContext and shared_ptr and i stumbled into this.
Boost no matching member function for call to ‘async_wait’
I am learning boost and trying to run example code: https://www.boost.org/doc/libs/master/doc/html/boost_asio/tutorial/tuttimer3/src.html
Canceling a co_spawn-ed coroutine using signal_set & cancellation_signal
I’m trying to spawn a coroutine which would be watching the cancellation state, which itself would be emitted by a signal_set. However when I do try it, the exception get’s thrown once the thread gets deleted. So I guess something is left hanging?
who to know whether boost::asio::io_context is ready
I am writing an HTTP server. I have written the following and it works well: