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

Function ff_hook_bind

adapter/micro_thread/ff_hook.cpp:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151int ff_hook_bind(int fd, const struct sockaddr *addr, socklen_t addrlen)
152{
153 if (ff_fdisused(fd)) {
154 return ff_bind(fd, (struct linux_sockaddr *)addr, addrlen);
155 } else {
156 return mt_real_func(bind)(fd, addr, addrlen);
157 }
158}
159
160int ff_hook_accept(int fd, struct sockaddr *addr, socklen_t *addrlen)
161{

Callers 1

bindFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_bindFunction · 0.85

Tested by

no test coverage detected