Boost logo

Boost Users :

From: Loup VAILLANT (l.vaillant_at_[hidden])
Date: 2024-04-10 09:22:50


> > What I need is a way for the user-code to yield, and then resume later when it has the info it needs to build the response. > I used beast::websocket to keep the https connection open with a client and used boost::asio::post() on the server. This way, a worker thread on the server can submit a job for processing and go listen for new incoming requests. Some worker thread will be called-back to run a completion function when the response is ready. Yeah, I didn't know about boost::asio::post() until yesterday. Looks like this is the way, thanks. > Please review http_server_async.cpp and websocket_server_async.cpp files in the examples page. Will do. Loup.


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