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

Method session

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

Take ownership of the stream

Source from the content-addressed store, hash-verified

220public:
221 // Take ownership of the stream
222 session(
223 tcp::socket&& socket,
224 std::shared_ptr<std::string const> const& doc_root)
225 : stream_(std::move(socket))
226 , doc_root_(doc_root)
227 {
228 }
229
230 // Start the asynchronous operation
231 void

Callers

nothing calls this directly

Calls 1

moveClass · 0.85

Tested by

no test coverage detected