[zeromq-dev] multipart message receiving does not work with C++
Martin Sustrik
sustrik at 250bpm.com
Wed Jun 1 17:49:11 CEST 2011
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