thank you very much klaar, and everyone for this clarification.<br><br>r.<br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 7:52 AM, Magnus Klaar <span dir="ltr"><<a href="mailto:magnus.klaar@gmail.com">magnus.klaar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<div><br></div><div>gen_tcp:recv(..., N, M) returns {error, timeout} if N bytes has not been received after M milliseconds. If less bytes are available the call will _not_ succeed. If you are receiving data at a slow rate specifying 0 as the length is preferrable because the call will return whatever data is available at the time. If there is no data available it will wait and timeout if no data has been received after M milliseconds. If you don't want to timeout at all when doing this, specify infinity as the timout value.</div>
<div><br></div><div>MVH Magnus<br></div></blockquote></div>