libuv/ol-win.h

30 lines
481 B
C
Raw Normal View History

2011-03-23 12:56:06 +00:00
2011-03-30 03:03:56 +00:00
#include <winsock2.h>
#include <mswsock.h>
#include <ws2tcpip.h>
#include <windows.h>
2011-03-23 12:56:06 +00:00
/**
2011-03-30 03:03:56 +00:00
* It should be possible to cast ol_buf[] to WSABUF[]
* see http://msdn.microsoft.com/en-us/library/ms741542(v=vs.85).aspx
2011-03-23 12:56:06 +00:00
*/
typedef struct _ol_buf {
2011-03-30 03:03:56 +00:00
ULONG len;
char* base;
2011-03-23 12:56:06 +00:00
} ol_buf;
2011-03-28 08:55:29 +00:00
typedef struct {
OVERLAPPED overlapped;
2011-03-30 05:19:17 +00:00
int flags;
2011-03-28 08:55:29 +00:00
} ol_req_private;
2011-03-30 03:03:56 +00:00
typedef struct {
union {
SOCKET socket;
HANDLE handle;
};
2011-03-30 05:19:17 +00:00
struct ol_req_s* accept_req;
} ol_handle_private;