Added -s option support for proxying with splice() for Liux

(without copying network data to
userspace). Currently only for tcppm.
This commit is contained in:
z3apa3a committed 2016-12-19 02:56:23 +03:00
1 parent 945c30c5ee
commit 6696b35d74
6 files changed
+236 -4

No files matched your search

+8
View File
@@ -150,6 +150,7 @@ extern int timetoexit;
extern struct extparam conf;
int sockmap(struct clientparam * param, int timeo);
int splicemap(struct clientparam * param, int timeo);
int socksend(SOCKET sock, unsigned char * buf, int bufsize, int to);
int socksendto(SOCKET sock, struct sockaddr * sin, unsigned char * buf, int bufsize, int to);
int sockrecvfrom(SOCKET sock, struct sockaddr * sin, unsigned char * buf, int bufsize, int to);
@@ -318,6 +319,13 @@ extern struct datatype datatypes[64];
extern struct commands commandhandlers[];
#ifdef WITHSPLICE
#define mapsocket(a,b) (a->srv->usesplice?splicemap(a,b):sockmap(a,b))
#else
#define mapsocket(a,b) sockmap(a,b)
#endif
#ifdef _WINCE
char * CEToUnicode (const char *str);
int cesystem(const char *str);