string response = 
string(static_cast<char*>(reply.data()),reply.size());

That is how I convert it to string. After that I use the url in webkit 
and the "login" message is only used in application.

On 15.09.2014 01:05, Thomas Rodgers wrote:
> How do you display the string on the receiving end?
>
> On Sunday, September 14, 2014, Dávid Kaya  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
>> [email protected]
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev [1]
>
>
> Links:
> ------
> [1] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> [2] mailto:[email protected]
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to