mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
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:
1 parent
945c30c5ee
commit
6696b35d74
6 files changed
+236
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user