[zeromq-dev] Confusion in the parallel pipe example

2013-04-09 Thread Pritesh Acharya
In the parallel pipe example, zmq_bind (sender, tcp://*:5557); zmq_connect (sink, tcp://localhost:5558); and s_send (sink, 0); s_send (sender, string); how does the control continues in the first s_send and block on the second s_send, when I haven't started sink on 5558 port. ?

Re: [zeromq-dev] Confusion in the parallel pipe example

2013-04-09 Thread Pieter Hintjens
Hi Pritesh, You're talking about the task ventilator? The second send doesn't block. The task pipeline can be a little puzzling at first; best thing is to draw the design on paper and try to understand the message flow from piece to piece. -Pieter On Tue, Apr 9, 2013 at 9:56 AM, Pritesh

[zeromq-dev] pushpin

2013-04-09 Thread Justin Karneges
Hi people, My Pushpin project seems to be getting a lot of attention on HackerNews: https://news.ycombinator.com/item?id=5516568 I just wanted to mention that under the hood it's a multiprocess ZeroMQ architecture. Thanks again for the nice lib. :) Justin

Re: [zeromq-dev] Problems cross compiling for ARM

2013-04-09 Thread Martin Lucina
Hi Michael, mwpowell...@gmail.com said: Hello, I want to build ZMQ for ARM but have problems. If I just build with the plain old i386 arch, no problems. I do get a .a library I can statically link against, BTW. Good. Now if I ./configure ... CC=arm-none-linux-gnueabi-gcc --host=arm

[zeromq-dev] ESTABLISHED connection mismatch

2013-04-09 Thread Garrett Smith
I don't know if this is a 0MQ question or a general networking question. I know that I'm confused. I'm troubleshooting some message delivery problems and I've run across this scenario: The ESTABLISHED tcp connections on one server don't match the corresponding connections on the other server.

Re: [zeromq-dev] Problems cross compiling for ARM

2013-04-09 Thread Martin Lucina
Unfortunately not, see above. E.g. I have arm-linux-gnueabi here since I use the EmDebian toolchain. FYI, I couldn't get zeromq-3.2.2 to compile using my toolchain (Debian 4.4.5-8) due to a bug in decoder.hpp. Fixed the bug myself and was going to submit a patch but this appears to have been

Re: [zeromq-dev] Sending via ROUTER socket to ROUTER socket fails initially with No route to host

2013-04-09 Thread Anoop Karollil
Thanks Pieter. Does the hand shaking happen at connect? Because suppose there is a delay after the connect, before the initial send, the send succeeds. If the handshaking does happen at connect, and if it is possible to make sure the connect returns only after the handshaking is done, that

Re: [zeromq-dev] ESTABLISHED connection mismatch

2013-04-09 Thread Michel Pelletier
Is there NATing between these two hosts? RFC 5382 has some guidelines on idle timeout for established connections, you might be hitting that limit. -Michel On Tue, Apr 9, 2013 at 9:36 AM, Garrett Smith g...@rre.tt wrote: I don't know if this is a 0MQ question or a general networking

Re: [zeromq-dev] ESTABLISHED connection mismatch

2013-04-09 Thread Garrett Smith
No NATing that I'm aware of. But this is EC2, so there could be shenanigans afoot. (Shenanigans btw, is the most advanced descriptor in my network layer vocabulary.) The 6 established connections on the router-server are still shown via netstat -- even after these many hours have passed. If

Re: [zeromq-dev] ESTABLISHED connection mismatch

2013-04-09 Thread Michel Pelletier
Are you using their VPC technology or talking over elastic IPs? The elastic IP stuff does seem to involve some shenanigans, in that it must forward or somehow bind the public ip to the internal one. If you use VPC, I don't think there's that translation layer involved. Other than that, I'm out

[zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread Rahul Piyali Ray
Hi Gurus, I have implemented a dealer (server) and router ( as server) using zmq. I would like my application to use dealer or router to both send and receive messages, something like a dealer can send and receive message. Is this possible ? Please see the code that I have written. This works

Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread A. Mark
It is difficult to help without understanding more detail about your application, in general yes you can send/recv in any order on router/dealer. On Tue, Apr 9, 2013 at 3:38 PM, Rahul Piyali Ray 8429oakm...@gmail.comwrote: Hi Gurus, I have implemented a dealer (server) and router ( as

Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread Lucas Hope
The router has to receive a message from the dealer first, so the return envelope/s can be determined. After that, I don't think there are any restrictions. On Wed, Apr 10, 2013 at 1:06 PM, A. Mark gougol...@gmail.com wrote: It is difficult to help without understanding more detail about your