[zeromq-dev] ZMQ appends weird characters to message

Dávid Kaya mail at davidkaya.sk
Sun Sep 14 17:02:17 CEST 2014


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



More information about the zeromq-dev mailing list