VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/NAT/winpoll.h@ 51616

最後變更 在這個檔案從51616是 48001,由 vboxsync 提交於 11 年 前

Move proxy sources from Devices/Network/lwip-new/vbox
to NetworkServices/NAT where they belong.

  • 屬性 svn:eol-style 設為 native
檔案大小: 771 位元組
 
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
22struct pollfd {
23
24 SOCKET fd;
25 SHORT events;
26 SHORT revents;
27
28};
29#endif
30RT_C_DECLS_BEGIN
31int RTWinPoll(struct pollfd *pFds, unsigned int nfds, int timeout, int *pNready);
32RT_C_DECLS_END
33#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette