[zeromq-dev] Possible non conformance of libzmq with RFC/26 ?

Laurent Alebarde l.alebarde at free.fr
Fri Jan 3 10:12:26 CET 2014


Thanks Pieter, I have added a comment here: 
https://github.com/lalebarde/streamq-proxy/commit/9900f1ca543b5e8866f42405ebb2887ac01d4046#commitcomment-4975987

I will correct my code to make it clearer when I have some time.

Cheers,

Laurent


Le 02/01/2014 22:07, Pieter Hintjens a écrit :
> On Tue, Dec 31, 2013 at 5:01 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
>
>> In StreamQ-Proxy, I test that in the handcheck, I have "CURVE", then
>> "READY". From RFC/26, I SHOULD test:
>> !memcmp(content + 1, "READY", 5)
>> Instead, I have to use:
>> !memcmp(content + 3, "READY", 5)
> OK, RFC 26 assumes you have some mechanism to send/recv frames. So the
> command comes at the start of the frame, and consists of a 1-octet
> length plus the name, so [5]READY.
>
> If you are reading raw ZeroMQ frames then you also get the frame
> header, two bytes containing the command size. So, content + 3.
>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140103/b51a1dd1/attachment.htm>


More information about the zeromq-dev mailing list