到底完成端口之完成key指向的数据结构是不是需要互斥访问?代码见内
for this struct :
// the completion key point to it:
typedef struct _OVERLAPPEDPLUS
{
OVERLAPPED ol;
SOCKET s, sclient;
int OpCode;
char recvBuf[512],sendBuf[512];
DWORD dwBytes, dwFlags;
// other useful information
}OVERLAPPEDPLUS;
the mem of recvBuf[]and sendBuf[] should be protected when i use IOCP?
thanks.