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

Method run

example/websocket/server/async/websocket_server_async.cpp:59–70  ·  view source on GitHub ↗

Get on the correct executor

Source from the content-addressed store, hash-verified

57
58 // Get on the correct executor
59 void
60 run()
61 {
62 // We need to be executing within a strand to perform async operations
63 // on the I/O objects in this session. Although not strictly necessary
64 // for single-threaded contexts, this example code is written to be
65 // thread-safe by default.
66 net::dispatch(ws_.get_executor(),
67 beast::bind_front_handler(
68 &session::on_run,
69 shared_from_this()));
70 }
71
72 // Start the asynchronous operation
73 void

Callers 8

mainFunction · 0.45
on_acceptMethod · 0.45
mainFunction · 0.45
on_readMethod · 0.45
on_acceptMethod · 0.45
mainFunction · 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