Last change
on this file since 52560 was 48001, checked in by vboxsync, 11 years ago |
Move proxy sources from Devices/Network/lwip-new/vbox
to NetworkServices/NAT where they belong.
|
-
Property svn:eol-style
set to
native
|
File size:
771 bytes
|
Line | |
---|
1 | #ifndef _WINPOLL_H_
|
---|
2 | #define _WINPOLL_H_
|
---|
3 | # include <iprt/cdefs.h>
|
---|
4 | /**
|
---|
5 | * WinSock2 has definition for POLL* and pollfd, but it defined for _WIN32_WINNT > 0x0600
|
---|
6 | * and used in WSAPoll, which has very unclear history.
|
---|
7 | */
|
---|
8 | # if(_WIN32_WINNT < 0x0600)
|
---|
9 | # define POLLRDNORM 0x0100
|
---|
10 | # define POLLRDBAND 0x0200
|
---|
11 | # define POLLIN (POLLRDNORM | POLLRDBAND)
|
---|
12 | # define POLLPRI 0x0400
|
---|
13 |
|
---|
14 | # define POLLWRNORM 0x0010
|
---|
15 | # define POLLOUT (POLLWRNORM)
|
---|
16 | # define POLLWRBAND 0x0020
|
---|
17 |
|
---|
18 | # define POLLERR 0x0001
|
---|
19 | # define POLLHUP 0x0002
|
---|
20 | # define POLLNVAL 0x0004
|
---|
21 |
|
---|
22 | struct pollfd {
|
---|
23 |
|
---|
24 | SOCKET fd;
|
---|
25 | SHORT events;
|
---|
26 | SHORT revents;
|
---|
27 |
|
---|
28 | };
|
---|
29 | #endif
|
---|
30 | RT_C_DECLS_BEGIN
|
---|
31 | int RTWinPoll(struct pollfd *pFds, unsigned int nfds, int timeout, int *pNready);
|
---|
32 | RT_C_DECLS_END
|
---|
33 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.