MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_hook_socket

Function ff_hook_socket

adapter/micro_thread/ff_hook.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "ff_hook.h"
36
37int ff_hook_socket(int domain, int type, int protocol)
38{
39 if ((AF_INET != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) {
40 return mt_real_func(socket)(domain, type, protocol);
41 }
42 return ff_socket(domain, type, protocol);
43}
44
45int ff_hook_close(int fd)
46{

Callers 1

socketFunction · 0.70

Calls 1

ff_socketFunction · 0.50

Tested by

no test coverage detected