On 30 August 2010 15:06, Wolfgang Richter <[email protected]> wrote:

> I think forcing the users to allocate (not necessarily send) a '\0' byte is
> OK because it's leaving the encoding of data up to the user.
>
> Specifically guarding for this in 0MQ might be nice, but I'm not sure we
> want bugs like this to propagate in user code.  As in, later on in their app
> missing this 0 byte might cause other bugs.  If 0MQ magically made it OK in
> some cases these could be masked.
>
>
Might be a good idea for a special debug instrumented build.  However the
API is supposed to be binary safe not just targeted to strings, it does seem
a bit too much hand holding that would be better suited to higher level
logic.

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

Reply via email to