How to properly manage client disconnection?

Jonathan Neuschäfer j.neuschaefer at
Tue May 22 21:47:54 CEST 2012

On Tue, May 22, 2012 at 03:32:35PM -0400, Kevyn-Alexandre Paré wrote:
> 1) Can I assume that if the recv return zero mean that the client have been disconnected?

Yes, that's what the manpage states:
"The return value will be 0 when the peer has performed an orderly shutdown."

	Jonathan Neuschäfer

More information about the libev mailing list