On Mon, Jul 04, 2011 at 09:03:41PM +0200, Zsbán Ambrus <[email protected]>
wrote:
> I don't think there's a difference between read and recv in this
> respect: either of them returns 0 on an end of file (such as if the
> peer has closed or shut down a connection in case of a tcp connection
> socket); but EOF with errno=EAGAIN if there is nothing to read yet.
They actually return -1 not EOF on any error (which might be any negative
value), but otherwise, yes, they behave identically.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [email protected]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev