libev: multiple writes in write callback?
Marc Lehmann
schmorp at schmorp.de
Mon Jul 4 22:38:55 CEST 2011
On Mon, Jul 04, 2011 at 09:03:41PM +0200, Zsbán Ambrus <ambrus at math.bme.hu> 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
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list