Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
497
int tcp_connect(EndPoint server, int* self_port) {
498
return tcp_connect(server, self_port, -1);
499
}
500
501
int tcp_connect(const EndPoint& server, int* self_port, int connect_timeout_ms) {
502
struct sockaddr_storage serv_addr{};
Callers
9
TestConnectInterruptImpl
Function · 0.85
HandshakeWithServer
Method · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
test_listen_connect
Function · 0.85
TEST
Function · 0.85
TestConnectInterruptImpl
Function · 0.85
client_thread
Function · 0.85
TestConnections
Method · 0.85
Calls
6
endpoint2sockaddr
Function · 0.85
milliseconds_from_now
Function · 0.85
bthread_timed_connect
Function · 0.85
pthread_timed_connect
Function · 0.85
get_local_side
Function · 0.85
release
Method · 0.45
Tested by
9
TestConnectInterruptImpl
Function · 0.68
HandshakeWithServer
Method · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
test_listen_connect
Function · 0.68
TEST
Function · 0.68
TestConnectInterruptImpl
Function · 0.68
client_thread
Function · 0.68
TestConnections
Method · 0.68