MCPcopy Create free account
hub / github.com/boostorg/beast / run

Method run

example/http/server/stackless-ssl/http_server_stackless_ssl.cpp:261–273  ·  view source on GitHub ↗

Start the asynchronous operation

Source from the content-addressed store, hash-verified

259
260 // Start the asynchronous operation
261 void
262 run()
263 {
264 // We need to be executing within a strand to perform async operations
265 // on the I/O objects in this session.Although not strictly necessary
266 // for single-threaded contexts, this example code is written to be
267 // thread-safe by default.
268 net::dispatch(stream_.get_executor(),
269 beast::bind_front_handler(&session::loop,
270 shared_from_this(),
271 beast::error_code{},
272 0));
273 }
274
275 #include <boost/asio/yield.hpp>
276

Callers 2

loopMethod · 0.45
mainFunction · 0.45

Calls 2

bind_front_handlerFunction · 0.85
get_executorMethod · 0.45

Tested by

no test coverage detected