mirror of
https://github.com/3proxy/3proxy.git
synced 2025-06-08 12:34:48 +08:00
Merge fa7cdf2a5b
into 5f341806b7
This commit is contained in:
commit
9a53118e95
@ -157,7 +157,7 @@ int
|
|||||||
WINAPI
|
WINAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mypoll(struct mypollfd *fds, unsigned int nfds, int timeout){
|
mypoll(struct mypollfd *fds, nfds_t nfds, int timeout){
|
||||||
fd_set readfd;
|
fd_set readfd;
|
||||||
fd_set writefd;
|
fd_set writefd;
|
||||||
fd_set oobfd;
|
fd_set oobfd;
|
||||||
|
@ -69,6 +69,7 @@ int mutex_unlock(int *val);
|
|||||||
#ifdef WITH_POLL
|
#ifdef WITH_POLL
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#else
|
#else
|
||||||
|
typedef unsigned int nfds_t;
|
||||||
#ifdef WITH_WSAPOLL
|
#ifdef WITH_WSAPOLL
|
||||||
|
|
||||||
#define poll(A,B,C) WSAPoll(A,B,C)
|
#define poll(A,B,C) WSAPoll(A,B,C)
|
||||||
@ -84,7 +85,7 @@ int
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WINAPI
|
WINAPI
|
||||||
#endif
|
#endif
|
||||||
mypoll(struct mypollfd *fds, unsigned int nfds, int timeout);
|
mypoll(struct mypollfd *fds, nfds_t nfds, int timeout);
|
||||||
#ifndef POLLIN
|
#ifndef POLLIN
|
||||||
#define POLLIN 1
|
#define POLLIN 1
|
||||||
#endif
|
#endif
|
||||||
@ -702,7 +703,7 @@ struct sockfuncs {
|
|||||||
int (WINAPI *_getsockname)(SOCKET s, struct sockaddr * name, int * namelen);
|
int (WINAPI *_getsockname)(SOCKET s, struct sockaddr * name, int * namelen);
|
||||||
int (WINAPI *_getsockopt)(SOCKET s, int level, int optname, char * optval, int * optlen);
|
int (WINAPI *_getsockopt)(SOCKET s, int level, int optname, char * optval, int * optlen);
|
||||||
int (WINAPI *_setsockopt)(SOCKET s, int level, int optname, const char *optval, int optlen);
|
int (WINAPI *_setsockopt)(SOCKET s, int level, int optname, const char *optval, int optlen);
|
||||||
int (WINAPI *_poll)(struct pollfd *fds, unsigned int nfds, int timeout);
|
int (WINAPI *_poll)(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||||
int (WINAPI *_send)(SOCKET s, const char *msg, int len, int flags);
|
int (WINAPI *_send)(SOCKET s, const char *msg, int len, int flags);
|
||||||
int (WINAPI *_sendto)(SOCKET s, const char *msg, int len, int flags, const struct sockaddr *to, int tolen);
|
int (WINAPI *_sendto)(SOCKET s, const char *msg, int len, int flags, const struct sockaddr *to, int tolen);
|
||||||
int (WINAPI *_recv)(SOCKET s, char *buf, int len, int flags);
|
int (WINAPI *_recv)(SOCKET s, char *buf, int len, int flags);
|
||||||
@ -719,7 +720,7 @@ struct sockfuncs {
|
|||||||
int (*_getsockname)(SOCKET s, struct sockaddr * name, socklen_t * namelen);
|
int (*_getsockname)(SOCKET s, struct sockaddr * name, socklen_t * namelen);
|
||||||
int (*_getsockopt)(SOCKET s, int level, int optname, void * optval, socklen_t * optlen);
|
int (*_getsockopt)(SOCKET s, int level, int optname, void * optval, socklen_t * optlen);
|
||||||
int (*_setsockopt)(int s, int level, int optname, const void *optval, socklen_t optlen);
|
int (*_setsockopt)(int s, int level, int optname, const void *optval, socklen_t optlen);
|
||||||
int (*_poll)(struct pollfd *fds, unsigned int nfds, int timeout);
|
int (*_poll)(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||||
size_t (*_send)(SOCKET s, const void *msg, size_t len, int flags);
|
size_t (*_send)(SOCKET s, const void *msg, size_t len, int flags);
|
||||||
size_t (*_sendto)(SOCKET s, const void *msg, size_t len, int flags, const struct sockaddr *to, SASIZETYPE tolen);
|
size_t (*_sendto)(SOCKET s, const void *msg, size_t len, int flags, const struct sockaddr *to, SASIZETYPE tolen);
|
||||||
size_t (*_recv)(SOCKET s, void *buf, size_t len, int flags);
|
size_t (*_recv)(SOCKET s, void *buf, size_t len, int flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user