MCPcopy Create free account
hub / github.com/F-Stack/f-stack / connect

Function connect

app/redis-6.2.6/src/anet_ff.c:188–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188int
189connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
190{
191 if (unlikely(inited == 0)) {
192 INIT_FUNCTION(connect);
193 return real_connect(sockfd, addr, addrlen);
194 }
195
196 if (ff_fdisused(sockfd)) {
197 return ff_connect(sockfd, (struct linux_sockaddr *)addr, addrlen);
198 } else {
199 return real_connect(sockfd, addr, addrlen);
200 }
201}
202
203ssize_t
204send(int sockfd, const void *buf, size_t len, int flags)

Callers 15

anetTcpGenericConnectFunction · 0.70
anetUnixGenericConnectFunction · 0.70
NgMkSockNodeFunction · 0.50
xo_connect_logFunction · 0.50
create_socketFunction · 0.50
register_clientFunction · 0.50
memif_connect_clientFunction · 0.50
vhost_user_setupFunction · 0.50
init_uds_sockFunction · 0.50
mlx5_test_extend_devargsFunction · 0.50
connect_to_socketFunction · 0.50

Calls 2

ff_fdisusedFunction · 0.85
ff_connectFunction · 0.85

Tested by 2

mlx5_test_extend_devargsFunction · 0.40
connect_to_socketFunction · 0.40