Q 1 Could the size of received data be different from lpNumberOfBytesTransferred in GetQueuedCompletionStatus Function In C++ Code ?
Q 2 Why I have not run the client and server on one pc?
I am studying C++ IOCP.
I am testing the GetQueuedCompleteStatus function.
I have a problem.
When recv completion notification is received, the length of the data actually written and the value of lpNumberOfBytesTransferred provided as a parameter of the GetQueuedCompletionStatus function are different.
I am running server and client dumy on one PC.
I know this is an environment where problems can surely arise, but I don’t know why.
Why I have not run the client and server on one pc?
Source: Windows Questions C++