MCPcopy Create free account
hub / github.com/apache/brpc / tcp_connect

Function tcp_connect

src/butil/endpoint.cpp:497–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497int tcp_connect(EndPoint server, int* self_port) {
498 return tcp_connect(server, self_port, -1);
499}
500
501int tcp_connect(const EndPoint& server, int* self_port, int connect_timeout_ms) {
502 struct sockaddr_storage serv_addr{};

Callers 9

TestConnectInterruptImplFunction · 0.85
HandshakeWithServerMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
test_listen_connectFunction · 0.85
TESTFunction · 0.85
TestConnectInterruptImplFunction · 0.85
client_threadFunction · 0.85
TestConnectionsMethod · 0.85

Calls 6

endpoint2sockaddrFunction · 0.85
milliseconds_from_nowFunction · 0.85
bthread_timed_connectFunction · 0.85
pthread_timed_connectFunction · 0.85
get_local_sideFunction · 0.85
releaseMethod · 0.45

Tested by 9

TestConnectInterruptImplFunction · 0.68
HandshakeWithServerMethod · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
test_listen_connectFunction · 0.68
TESTFunction · 0.68
TestConnectInterruptImplFunction · 0.68
client_threadFunction · 0.68
TestConnectionsMethod · 0.68