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

Function ff_hook_recv

adapter/micro_thread/ff_hook.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97}
98ssize_t ff_hook_recv(int fd, void *buffer, size_t length, int flags)
99{
100 if (ff_fdisused(fd)) {
101 return ff_recv(fd, buffer, length, flags);
102 } else {
103 return mt_real_func(recv)(fd, buffer, length, flags);
104 }
105}
106ssize_t ff_hook_send(int fd, const void *buf, size_t nbyte, int flags)
107{
108 if (ff_fdisused(fd)) {

Callers 4

RecvDataMethod · 0.70
recvMethod · 0.70
cache_tcp_recvFunction · 0.70
recvFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_recvFunction · 0.85

Tested by

no test coverage detected