MCPcopy Create free account
hub / github.com/boostorg/asio / connect

Method connect

example/cpp11/ssl/client.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void connect(const tcp::resolver::results_type& endpoints)
60 {
61 boost::asio::async_connect(socket_.lowest_layer(), endpoints,
62 [this](const boost::system::error_code& error,
63 const tcp::endpoint& /*endpoint*/)
64 {
65 if (!error)
66 {
67 handshake();
68 }
69 else
70 {
71 std::cout << "Connect failed: " << error.message() << "\n";
72 }
73 });
74 }
75
76 void handshake()
77 {

Callers 15

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
test_sync_operationsFunction · 0.45
test_async_operationsFunction · 0.45
test_sync_operationsFunction · 0.45
test_async_operationsFunction · 0.45
test_sync_operationsFunction · 0.45

Calls 1

async_connectFunction · 0.50

Tested by 6

test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36
test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36
test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36