On Wed, Mar 23, 2011 at 10:30 PM, gonzalo diethelm <[email protected]> wrote:

> A rather ugly but functional idea would be to return:
> * number of bytes received on success;
> * 0 on EOF;
> * - number of bytes required for a successful receive.

This is the MSG_TRUNC semantics I already referred to.

It is a common pattern in POSIX functions that require a buffer to
work in, e.g. vsnprintf.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to