[zeromq-dev] ZMQ appends weird characters to message

Thomas Rodgers rodgert at twrodgers.com
Mon Sep 15 01:05:23 CEST 2014


How do you display the string on the receiving end?

On Sunday, September 14, 2014, Dávid Kaya <mail at davidkaya.sk> wrote:

> Hi,
>
> Let's say I have a message like this one:
>
> string loginMessage = "login";
> zmq::message_t
> request((void*)loginMessage.c_str(),loginMessage.length(),NULL);
>
> whenever I send it, it comes like this: "loginY Socket-Type". There is
> also a empty "box" after Y. Then when I send a url, (120 characters
> approx.), zmq cuts off last couple of characters and replace them with
> '@' followed by empty boxes. It's always same characters, it does not
> change. It's a 'Y' with empty box in "login" message and '@' with empty
> boxes in url message.
>
> I use IPC socket (REP/REQ) on linux (created in "/tmp/*socket*"), zmq
> version 4.0.4 and c++ binding (last version).
>
> Thanks,
>
> David
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org <javascript:;>
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140914/f9b8a45c/attachment.htm>


More information about the zeromq-dev mailing list