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

Pieter Hintjens ph at imatix.com
Thu Jan 2 22:07:37 CET 2014

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.


More information about the zeromq-dev mailing list