02-18-04 06:34 AM
In article <1a26ae5d.0402180127.3e89a257@posting.google.com>, Raja wrote:
> I have a recv call to a socket and the return value from recv is 0 and
> the errno is EAGAIN. There are lots of discussions around this but i
> couldnt get a clear picture anywhere.
> What are the chances of recv returning 0 and EAGAIN? The manual says
> only if recv is -1, you should check for EAGAIN. Should i ignore the
> value of errno if recv returns a 0?
If a call didn't fail, which in this case it did not since
it didn't return -1 ,you shouldn't check errno nor trust its value.
--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal
System Engineer
w w w . u t e l s y s t e m s . c o m
[ Post a follow-up to this message ]
|