2 * Winsock 2 definitions
7 #ifndef __WINSOCK2API__
8 #define __WINSOCK2API__
12 #define FD_MAX_EVENTS 10
15 #define FD_WRITE_BIT 1
17 #define FD_ACCEPT_BIT 3
18 #define FD_CONNECT_BIT 4
19 #define FD_CLOSE_BIT 5
21 typedef struct _WSANETWORKEVENTS {
23 int iErrorCode[FD_MAX_EVENTS];
24 } WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
26 typedef HANDLE WSAEVENT;
28 #define WSACreateEvent() CreateEvent(NULL, TRUE, FALSE, NULL)
31 int WINAPI WSAEnumNetworkEvents(SOCKET s, WSAEVENT hEventObject, LPWSANETWORKEVENTS lpNetworkEvents);
32 int WINAPI WSAEventSelect(SOCKET s, WSAEVENT hEventObject, long lNetworkEvents);