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

Function socket

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

Source from the content-addressed store, hash-verified

151}
152
153int
154socket(int domain, int type, int protocol)
155{
156 int rc;
157
158 if (unlikely(inited == 0)) {
159 INIT_FUNCTION(socket);
160 return real_socket(domain, type, protocol);
161 }
162
163 if ((AF_INET != domain && AF_INET6 != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) {
164 rc = real_socket(domain, type, protocol);
165 return rc;
166 }
167
168 rc = ff_socket(domain, type, protocol);
169
170 return rc;
171}
172
173int
174bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)

Callers 6

anetCreateSocketFunction · 0.70
anetTcpGenericConnectFunction · 0.70
_anetTcpServerFunction · 0.70
redisCreateSocketFunction · 0.50
_redisContextConnectTcpFunction · 0.50
win32_socketFunction · 0.50

Calls 1

ff_socketFunction · 0.50

Tested by

no test coverage detected