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

Function bind

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

Source from the content-addressed store, hash-verified

171}
172
173int
174bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
175{
176 if (unlikely(inited == 0)) {
177 INIT_FUNCTION(bind);
178 return real_bind(sockfd, addr, addrlen);
179 }
180
181 if (ff_fdisused(sockfd)) {
182 return ff_bind(sockfd, (struct linux_sockaddr *)addr, addrlen);
183 } else {
184 return real_bind(sockfd, addr, addrlen);
185 }
186}
187
188int
189connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)

Callers 15

anetTcpGenericConnectFunction · 0.70
anetListenFunction · 0.70
NgMkSockNodeFunction · 0.50
mainFunction · 0.50
GetSocketFunction · 0.50
create_socketFunction · 0.50
vhost_user_start_serverFunction · 0.50
open_socket_fdFunction · 0.50
dev_uev_socket_fd_createFunction · 0.50
memif_socket_createFunction · 0.50
vhost_user_start_serverFunction · 0.50

Calls 2

ff_fdisusedFunction · 0.85
ff_bindFunction · 0.85

Tested by 1

mainFunction · 0.40