> > Can I have a module with just a ZMQ_DOWNSTREAM socket, or with just a > > ZMQ_UPSTREAM socket? Or should they always be used in pairs? Sorry if > > this is a dumb question. > > It's pretty straightforward. The upmost component uses a single > ZMQ_DOWNSTREAM socket to send messages. > > All the components in the middle of the chain use one ZMQ_UPSTREAM > socket to get messages and one ZMQ_DOWNSTREAM socket to send them further. > > The last component in the chain uses single ZMQ_UPSTREAM socket to get > the results.
Ok, got it. Some additional questions; please keep in mind this is my first foray into ZMQ. The original code does a lot of wiring to point the outputs of some programs to the inputs of other programs. As one example, send_requests creates an "exchange" called SEND_REQUESTS_OUT; later on, component1 creates a "queue" called COMPONENT1_IN and "binds" SEND_REQUESTS_OUT to COMPONENT1_IN. Additionally, this all seems to depend on an external process called zmq_server. It seems in ZMQ 2.0 this binding of names and the zmq_server process are gone, right? So all I have to do is to specify proper endpoints for each of the current socket bind and connect calls? One other question: I reviewed the zmq_streamer.cpp source and noticed that both in_socket and out_socket are bound AND connected. Is this correct? Why would that be necessary? Shouldn't in_socket only be bound, and out_socket only be connected? Any other hints? -- 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. _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev