[zeromq-dev] new user question on ZeroMQ Pub Sub

Pieter Hintjens ph at imatix.com
Fri Jun 10 01:12:47 CEST 2011

On Fri, Jun 10, 2011 at 1:05 AM, Marc Ilgen <marc at westofpluto.com> wrote:

> I understand that each client/slave must connect to the master at the known
> master’s IP address/port (eg tcp:// But is it also the
> case that the master/server must also bind to the client at the client’s IP
> address/port?

No, master binds to interface:port, and clients connect to hostname:port.

> How can the receiving socket (the
> slave/client) tell if the socket connection has died for whatever reason and
> try to establish a new one?

0MQ does that (reestablishes a connection if needed) automatically.

You should read the Guide, a few times, and it'll become much more clear.

-Pieter Hintjens

More information about the zeromq-dev mailing list