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

Function ff_hook_connect

adapter/micro_thread/ff_hook.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int ff_hook_connect(int fd, const struct sockaddr *address, socklen_t addrlen_len)
55{
56 if (ff_fdisused(fd)) {
57 return ff_connect(fd, (struct linux_sockaddr *)address, addrlen_len);
58 } else {
59 return mt_real_func(connect)(fd, address, addrlen_len);
60 }
61}
62
63ssize_t ff_hook_read(int fd, void *buf, size_t nbyte)
64{

Callers 4

ConnectMethod · 0.70
OpenCnnectMethod · 0.70
connectMethod · 0.70
connectFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_connectFunction · 0.85

Tested by

no test coverage detected