[zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Dowd, Brian
Hi all, I am trying to get a simple example ROUTER/DEALER working, but seem to be hitting a problem that I've seen referred to in a few places - basically that of los/missing messages. I need my clients (DEALERs) and server (ROUTER) to be able to stop start independently .. they will be in

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Michel Pelletier
It looks like you are sending a multi-part message but not receiving it correctly. I'm not java expert so perhaps I could be wrong about how to recv a multi-part message in java, but in C you need to loop on recv() and check the socket option ZMQ_RCVMORE to know when to break. -Michel On Tue,

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Dowd, Brian
Of Michel Pelletier Sent: 25 September 2012 15:36 To: ZeroMQ development list Subject: Re: [zeromq-dev] ROUTER-DEALER missing connects/messages. It looks like you are sending a multi-part message but not receiving it correctly. I'm not java expert so perhaps I could be wrong about how to recv a multi

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Michel Pelletier
it is the issue here. Cheers, Brian -Original Message- From: zeromq-dev-boun...@lists.zeromq.org [mailto:zeromq-dev-boun...@lists.zeromq.org] On Behalf Of Michel Pelletier Sent: 25 September 2012 15:36 To: ZeroMQ development list Subject: Re: [zeromq-dev] ROUTER-DEALER missing

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Dowd, Brian
development list Subject: Re: [zeromq-dev] ROUTER-DEALER missing connects/messages. Ah right, I shouldn't answer emails at 7:30 am. I use Python typically where the minutia of SND/RCVMORE is unnecessary. Can you elaborate on what 2. Send a message through on each side to complete the connection, does

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Chuck Remes
On Sep 25, 2012, at 10:05 AM, Dowd, Brian wrote: HI Michel, Yes it is a multi-part message on the send side, however the first part is just the identity/destination/address details (i.e. client-1/client-2 etc), and the setIdentity() call in the Client side of things associates thw two

Re: [zeromq-dev] ROUTER-DEALER missing connects/messages.

2012-09-25 Thread Dowd, Brian
Sent: 25 September 2012 16:30 To: ZeroMQ development list Subject: Re: [zeromq-dev] ROUTER-DEALER missing connects/messages. On Sep 25, 2012, at 10:05 AM, Dowd, Brian wrote: HI Michel, Yes it is a multi-part message on the send side, however the first part is just the identity/destination