On Sun, Mar 6, 2011 at 12:21 PM, Mikko Koppanen
<[email protected]> wrote:

> as the message data is an opaque binary blob I am not sure whether
> removing the trailing \0 is correct behaviour. If you are receiving a
> message with a trailing \0 it means that the sender has included it as
> a part of the message.

Indeed... this seems to be a fault in the sender. The convention for
strings encoded as 0MQ frames is to NOT include a terminating null
byte.

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

Reply via email to