[zeromq-dev] Publish / Subscribe vs Multicast

gonzalo diethelm gdiethelm at dcv.cl
Mon Feb 15 22:06:56 CET 2010

> Yes, the all functionality is all gone. That's why I've discouraged
> from examining the old examples. Now you simply bind the sockets to
> appropriate endpoints and that's it. You need no central naming
> like zmq_server.

Ok, an even more basic question then: when should I call bind() and when
should I call connect() on a given socket?

> You can bind & connect a socket multiple times. For example, you can
> bind a PUB socket to PGM multicast group and at the same time you can
> connect to the remote logger service via TCP. Etc.
> In your case (butterfly) you would want each zmq_streamer to bind both
> inbound and outbound sockets. Each of your components will simply
> connect to the upstram and downstream zmq_streamer.

I thought I would bind() a socket whenever I want that socket to receive
messages, and I would connect() a socket whenever I want to send
messages over it; kind of bind -> passive, connect -> active. Am I
totally off the chart here?

Gonzalo Diethelm

Declaración de confidencialidad: Este Mensaje esta destinado para
el uso de la o las personas o entidades a quien ha sido dirigido y
puede contener información reservada y confidencial que no puede
ser divulgada, difundida, ni aprovechada en forma alguna. El uso no
autorizado de la información contenida en este correo podrá ser
sancionado de conformidad con la ley chilena. 
Si usted ha recibido este correo electrónico por error, le pedimos
eliminarlo junto con los archivos adjuntos y avisar inmediatamente
al remitente, respondiendo este mensaje. 

"Before printing this e-mail think if is really necesary".
Disclosure: This Message is to be used by the individual,
individuals or entities that it is addressed to and may include
private and confidential information that may not be disclosed,
made public nor used in any way at all. Unauthorized use of the
information in this electronic mail message may be subject to the
penalties set forth by Chilean law. 
If you have received this electronic mail message in error, we ask
you to destroy the message and its attached file(s) and to
immediately notify the sender by answering this message. 

More information about the zeromq-dev mailing list