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

Function bind

adapter/micro_thread/mt_sys_hook.cpp:347–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
348{
349 mt_hook_syscall(bind);
350 if (!ff_hook_active())
351 {
352 return mt_real_func(bind)(sockfd, addr, addrlen);
353 }
354
355 return ff_hook_bind(sockfd, addr, addrlen);
356}
357
358int accept(int fd, struct sockaddr *addr, socklen_t *addrlen)
359{

Callers 7

CreateSocketMethod · 0.70
echo_serverFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
loopFunction · 0.50
loopFunction · 0.50
mainFunction · 0.50

Calls 1

ff_hook_bindFunction · 0.70

Tested by

no test coverage detected