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

Function ff_hook_sendto

adapter/micro_thread/ff_hook.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79}
80ssize_t ff_hook_sendto(int fd, const void *message, size_t length, int flags,
81 const struct sockaddr *dest_addr, socklen_t dest_len)
82{
83 if (ff_fdisused(fd)) {
84 return ff_sendto(fd, message, length, flags, (struct linux_sockaddr *)dest_addr, dest_len);
85 } else {
86 return mt_real_func(sendto)(fd, message, length, flags, dest_addr, dest_len);
87 }
88}
89ssize_t ff_hook_recvfrom(int fd, void *buffer, size_t length, int flags,
90 struct sockaddr *address, socklen_t *address_len)
91{

Callers 4

SendCacheUdpMethod · 0.70
SendDataMethod · 0.70
sendtoMethod · 0.70
sendtoFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_sendtoFunction · 0.85

Tested by

no test coverage detected