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

Method on_run

example/http/server/async-ssl/http_server_async_ssl.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 void
271 on_run()
272 {
273 // Set the timeout.
274 beast::get_lowest_layer(stream_).expires_after(
275 std::chrono::seconds(30));
276
277 // Perform the SSL handshake
278 stream_.async_handshake(
279 ssl::stream_base::server,
280 beast::bind_front_handler(
281 &session::on_handshake,
282 shared_from_this()));
283 }
284
285 void
286 on_handshake(beast::error_code ec)

Callers

nothing calls this directly

Calls 2

bind_front_handlerFunction · 0.85
async_handshakeMethod · 0.45

Tested by

no test coverage detected