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." Thanks, Jonathan Neuschäfer