[zeromq-dev] zmq_msg_data problem
Mark Libucha
mlibucha at gmail.com
Tue Oct 18 00:19:22 CEST 2011
Hi folks,
I'm using the latest stable zmq (v2.1.10) and Java bindings. My client is
Java and server is C. This code in the server:
printf("size=%d\n",zmq_msg_size(&zmq_request));
msgText = (const char *) zmq_msg_data(&zmq_request);
printf("size=%d\n",strlen(msgText));
prints this:
2011-10-17 17:45:18,903 size=2808
2011-10-17 17:45:18,903 size=2809
The payload is JSON, but it's invalid when I run it through a parser.
Every so often the payload comes through correctly and the JSON gets parsed.
(The JSON is a static string in the Java code -- not changing.)
Any hints as how to proceed?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111017/0ac10f86/attachment.htm>
More information about the zeromq-dev
mailing list