[zeromq-dev] multipart message receiving does not work with C++
Seref Arikan
serefarikan at kurumsalteknoloji.com
Thu Jun 2 10:29:09 CEST 2011
Thanks Martin, will do that.
I'm in a bit of a hurry, so I'll try to cut some corners here: any
alternatives to multipart messages for message envelopes that you'd
recommend?
Regards
Seref
On Wed, Jun 1, 2011 at 4:49 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Hi Seref,
>
>> int _tmain(int argc, _TCHAR* argv[])
>> {
>>
>>
>>
>> zmq::context_t context(1);
>> zmq::socket_t socket(context, ZMQ_REP);
>> socket.bind("tcp://*:5555");
>>
>> while(true){
>> //These two lines do not work
>> zmq::message_t request;
>> socket.recv(&request);
>>
>> //zmq_msg_t message;
>> //zmq_msg_init (&message);
>> //zmq_recv (socket,&message, 0);
>>
>>
>>
>> }
>>
>> return 0;
>> }
>
> The code looks OK.
>
>> If I send single messages, both versions work. When I send multipart
>> messages, the C version works, but C++ version does not. This is
>> windows xp sp3 with vs.net 2010 express, with zeromq 2.1.1
>
> Can you try with 2.1.7? There were soem multi-part-related bugs solved in
> the meantime.
>
> Martin
>
More information about the zeromq-dev
mailing list