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

Method on_connect

example/http/client/async-ssl/http_client_async_ssl.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 void
118 on_connect(beast::error_code ec, tcp::resolver::results_type::endpoint_type)
119 {
120 if(ec)
121 return fail(ec, "connect");
122
123 // Perform the SSL handshake
124 stream_.async_handshake(
125 ssl::stream_base::client,
126 beast::bind_front_handler(
127 &session::on_handshake,
128 shared_from_this()));
129 }
130
131 void
132 on_handshake(beast::error_code ec)

Callers

nothing calls this directly

Calls 3

bind_front_handlerFunction · 0.85
failFunction · 0.70
async_handshakeMethod · 0.45

Tested by

no test coverage detected