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

Method run

example/advanced/server/advanced_server.cpp:351–363  ·  view source on GitHub ↗

Start the session

Source from the content-addressed store, hash-verified

349
350 // Start the session
351 void
352 run()
353 {
354 // We need to be executing within a strand to perform async operations
355 // on the I/O objects in this session. Although not strictly necessary
356 // for single-threaded contexts, this example code is written to be
357 // thread-safe by default.
358 net::dispatch(
359 stream_.get_executor(),
360 beast::bind_front_handler(
361 &http_session::do_read,
362 this->shared_from_this()));
363 }
364
365private:
366 void

Callers

nothing calls this directly

Calls 2

bind_front_handlerFunction · 0.85
get_executorMethod · 0.45

Tested by

no test coverage detected