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 <[email protected]> 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
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev