jck2ho
04-12-2002, 01:07 AM
Hi,
In my code, there is a place which calls the recvfrom function (as well as the readable function) continuously (in a loop) And I have write the receive callback function which would call the recvfrom function too.
When I run my code in debug mode with a breakpoint in the line of that recvfrom call, my program can receive the byte stream (UDP) correctly. However, if I don't have that breakpoint, the recvfrom call always returns 2, which is AEE_wouldblock.
I don't understand why I have such problem.
In my code, there is a place which calls the recvfrom function (as well as the readable function) continuously (in a loop) And I have write the receive callback function which would call the recvfrom function too.
When I run my code in debug mode with a breakpoint in the line of that recvfrom call, my program can receive the byte stream (UDP) correctly. However, if I don't have that breakpoint, the recvfrom call always returns 2, which is AEE_wouldblock.
I don't understand why I have such problem.