[zeromq-dev] Java to C++: junk appended to message?

Steven McCoy steven.mccoy at miru.hk
Mon Aug 30 21:17:10 CEST 2010

On 30 August 2010 15:06, Wolfgang Richter <wolf at cs.cmu.edu> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100830/9e4f7414/attachment-0001.htm>

More information about the zeromq-dev mailing list