[zeromq-dev] Socket connect status

Martin Sustrik sustrik at 250bpm.com
Thu Mar 11 17:05:38 CET 2010

Hi Andreas,

> I'm trying to establish a very simple connection. The single message 
> should be sent just
> after the socket connect. (via tcp on localhost) The problem is that the 
> message almost
> never arrives at the receiver side. The reason seems to be that the 
> socket is not yet
> connected, when the message should be sent.
> Is there any way to check, when the socket is ready to send messages?
> Is there any way to enforce sending messages, that are (in this case) 
> lost otherwise?

I assume you are using PUB/SUB sockets. These work as a radio 
transmission. PUB publishes continuous stream of data, while SUBs 
connect at a particular point, receive the stream for a while, then 

You may want to use different messaging pattern, depending on your use case.


More information about the zeromq-dev mailing list