[zeromq-dev] Important: backward incompatible changes for 0MQ/3.0!

Pieter Hintjens ph at imatix.com
Wed Mar 23 23:30:09 CET 2011

On Wed, Mar 23, 2011 at 10:30 PM, gonzalo diethelm <gdiethelm at dcv.cl> 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.


More information about the zeromq-dev mailing list