Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

WSAAsyncSelect Sends FD_READ yet recv fails with WSAEWOULDBLOCK

$
0
0
Hi

Is this a bug or something? I am using this function to set the socket to non-blocking mode. However

on MSDN it is said that in replying to FD_READ call recv since there is data to be received

But recv is returning WSAEWOULDBLOCK even if i loop through it. I get in an infinite loop.

i have a problem with this it seems to be buggy. I am simply transferring a picture over the network . Its size is only 5 kb. Sometimes the data is received in pieces while sometimes it is received all at once.

Any ideas? I am using local connection for testing 127.0.0.1. Why would i receive chunks while the client sent it all at once? i have checked this through the returning value of send function on the client. All data is sent at once. But i receive pieces of data sometimes.

This is really irritating. :mad:

Viewing all articles
Browse latest Browse all 21237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>