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

Function ff_hook_send

adapter/micro_thread/ff_hook.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105}
106ssize_t ff_hook_send(int fd, const void *buf, size_t nbyte, int flags)
107{
108 if (ff_fdisused(fd)) {
109 return ff_send(fd, buf, nbyte, flags);
110 } else {
111 return mt_real_func(send)(fd, buf, nbyte, flags);
112 }
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)) {

Callers 5

SendDataMethod · 0.70
sendMethod · 0.70
cache_tcp_sendFunction · 0.70
cache_tcp_send_buffFunction · 0.70
sendFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_sendFunction · 0.85

Tested by

no test coverage detected