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

Method run

example/http/server/async/http_server_async.cpp:231–242  ·  view source on GitHub ↗

Start the asynchronous operation

Source from the content-addressed store, hash-verified

229
230 // Start the asynchronous operation
231 void
232 run()
233 {
234 // We need to be executing within a strand to perform async operations
235 // on the I/O objects in this session. Although not strictly necessary
236 // for single-threaded contexts, this example code is written to be
237 // thread-safe by default.
238 net::dispatch(stream_.get_executor(),
239 beast::bind_front_handler(
240 &session::do_read,
241 shared_from_this()));
242 }
243
244 void
245 do_read()

Callers 3

on_acceptMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

bind_front_handlerFunction · 0.85
get_executorMethod · 0.45

Tested by

no test coverage detected