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
