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

Function ff_hook_setsockopt

adapter/micro_thread/ff_hook.cpp:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114}
115int ff_hook_setsockopt(int fd, int level, int option_name, const void *option_value, socklen_t option_len)
116{
117 if (ff_fdisused(fd)) {
118 return ff_setsockopt(fd, level, option_name, option_value, option_len);
119 } else {
120 return mt_real_func(setsockopt)(fd, level, option_name, option_value, option_len);
121 }
122}
123
124int ff_hook_ioctl(int fd, int cmd, void *arg)
125{

Callers 1

setsockoptFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_setsockoptFunction · 0.50

Tested by

no test coverage detected