Skip to content
Newer
Older
100644 14 lines (9 sloc) 294 Bytes
e8f6661 @jedisct1 Split filter
authored Jun 10, 2011
1
2 #ifndef __HOOK_SOCKET_H__
3 #define __HOOK_SOCKET_H__ 1
4
a257295 @jedisct1 Add a hook to connect()
authored Jun 13, 2011
5 DLL_PUBLIC int INTERPOSE(socket)(int domain, int type, int protocol);
0152d30 @jedisct1 ignore src/6jack and remove soon-not-true assert()ion
authored Jun 13, 2011
6 extern int (* __real_socket)(int domain, int type, int protocol);
6a66735 @jedisct1 Add hooks_init()
authored Jun 10, 2011
7 int __real_socket_init(void);
0152d30 @jedisct1 ignore src/6jack and remove soon-not-true assert()ion
authored Jun 13, 2011
8
9bdc72a @jedisct1 Use a macro to try using the real functions instead of wrappers.
authored Jun 10, 2011
9 #ifndef DONT_BYPASS_HOOKS
10 # define socket __real_socket
11 #endif
e8f6661 @jedisct1 Split filter
authored Jun 10, 2011
12
13 #endif
Something went wrong with that request. Please try again.