怎样判断GetQueuedCompletionStatus是接受完毕还是发送完毕
GetQueuedCompletionStatus返回的lpNumberOfBytes怎样才能确定是接受到的字节数还是发送出去的字节数?
比如我调用wsarecv(。。。)一直在iopending中,但同时因需要又wsasend(。。。)发送了一个包,
这时候GetQueuedCompletionStatus返回后我该怎么确定是接收到的数据还是发送出去的数据?
或者CompletionKey是我定义的一个结构
struct a
{
int ioflag;
};
这个ioflag的标志该如何设置啊,我是发送的同时也在接收啊。