Use a per-thread buffer and write(2) for debug traces.
[wine] / include / winsock2.h
1 /*
2  * Winsock 2 definitions
3  *
4  * FIXME!!!!
5  */
6  
7 #ifndef __WINSOCK2API__
8 #define __WINSOCK2API__
9
10 #include "winsock.h"
11
12 #define FD_MAX_EVENTS 10
13
14 #define FD_READ_BIT     0
15 #define FD_WRITE_BIT    1
16 #define FD_OOB_BIT      2
17 #define FD_ACCEPT_BIT   3
18 #define FD_CONNECT_BIT  4
19 #define FD_CLOSE_BIT    5
20
21 typedef struct _WSANETWORKEVENTS {
22   long lNetworkEvents;
23   int iErrorCode[FD_MAX_EVENTS];
24 } WSANETWORKEVENTS, *LPWSANETWORKEVENTS;
25
26 typedef HANDLE WSAEVENT;
27
28 #define WSACreateEvent() CreateEvent(NULL, TRUE, FALSE, NULL)
29 /* etc */
30
31 int WINAPI WSAEnumNetworkEvents(SOCKET s, WSAEVENT hEventObject, LPWSANETWORKEVENTS lpNetworkEvents);
32 int WINAPI WSAEventSelect(SOCKET s, WSAEVENT hEventObject, long lNetworkEvents);
33
34 #endif