MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / on_connect

Method on_connect

boost-http/http-client.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 void on_connect(beast::error_code error, tcp::resolver::results_type::endpoint_type) {
87 if (error) {
88 return fail("connect", std::move(error));
89 }
90
91 http::async_write(stream_, req_, beast::bind_front_handler(&HttpClientSession::on_write, shared_from_this()));
92 }
93
94 void on_write(beast::error_code error, std::size_t) {
95 if (error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected