Figure 1 Overlapped Structure
typedef struct _OVERLAPPEDPLUS {
OVERLAPPED ol;
SOCKET s, sclient;
int OpCode;
WSABUF wbuf;
DWORD dwBytes, dwFlags;
// other useful information
} OVERLAPPEDPLUS;
#define OP_READ 0
#define OP_WRITE 1
#define OP_ACCEPT 2
Figure 2 Worker Thread FakePre-b7972a64556946b48db6c4c32f3ad1fc-52f7ff377cbe4c74a1dff9eeeacbd152