MCPcopy Create free account
hub / github.com/apache/impala / ConnectClient

Method ConnectClient

security/tls_socket-test.cc:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void TlsSocketTest::ConnectClient(const Sockaddr& addr, unique_ptr<Socket>* sock) {
114 unique_ptr<Socket> client_sock(new Socket());
115 ASSERT_OK(client_sock->Init(0));
116 ASSERT_OK(client_sock->Connect(addr));
117
118 TlsHandshake client;
119 ASSERT_OK(client_tls_.InitiateHandshake(TlsHandshakeType::CLIENT, &client));
120 ASSERT_OK(DoNegotiationSide(client_sock.get(), &client, "client"));
121 ASSERT_OK(client.Finish(&client_sock));
122 *sock = std::move(client_sock);
123}
124
125class EchoServer {
126 public:

Callers

nothing calls this directly

Calls 7

moveFunction · 0.85
ConnectMethod · 0.80
InitiateHandshakeMethod · 0.80
DoNegotiationSideFunction · 0.70
getMethod · 0.65
InitMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected