Nvm, I should have given it a second thought.

If nread < 0 then it can not indicate any valid data in a possibly
arrived buffer.


On Sat, 2014-12-13 at 14:47 -0700, FAU wrote:
> Hello,
> 
> The documentation says:
> http://docs.libuv.org/en/latest/stream.html#c.uv_read_start
> "When nread < 0, the buf parameter might not point to a valid buffer; in
> that case buf.len and buf.base are both set to 0."
> 
> In other words me may also see a valid buffer (buf.len > 0, buf.base !=
> NULL) with nread < 0 arrive.  How do we treat the data in that buffer in
> this case -- as valid data?  What if nread == UV_EOF and we have a valid
> buffer?
> 
> Thanks,
> Frank
> 
> 
> 
> 


-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to