mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Use WSAPoll on Windows (except lite version)
This commit is contained in:
1 parent
db485dd4c4
commit
a42bb38d76
6 files changed
+48
-13
No files matched your search
+9
-3
@@ -122,6 +122,7 @@ int myrand(void * entropy, int len){
|
||||
}
|
||||
|
||||
#ifndef WITH_POLL
|
||||
#ifndef WITH_WSAPOLL
|
||||
int
|
||||
#ifdef _WIN32
|
||||
WINAPI
|
||||
@@ -157,6 +158,7 @@ int
|
||||
return num;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct sockfuncs so = {
|
||||
socket,
|
||||
@@ -168,10 +170,14 @@ struct sockfuncs so = {
|
||||
getsockname,
|
||||
getsockopt,
|
||||
setsockopt,
|
||||
#ifdef WITH_POLL
|
||||
poll,
|
||||
#else
|
||||
#ifndef WITH_POLL
|
||||
#ifndef WITH_WSAPOLL
|
||||
mypoll,
|
||||
#else
|
||||
WSAPoll,
|
||||
#endif
|
||||
#else
|
||||
poll,
|
||||
#endif
|
||||
(void *)send,
|
||||
(void *)sendto,
|
||||
|
||||
Reference in new issue
Block a user