[zeromq-dev] Windows and PGM

gonzalo diethelm gdiethelm at dcv.cl
Fri Mar 26 22:38:32 CET 2010

> > What I am trying to avoid is to pass large number of parameters to
> > API. In addition to the above, socket options should be passed etc.
> > if you just passed fully established sockets to the API?
> >
> > void *zmq_device (int type, void *in_socket, void *out_socket);
> > int zmq_device_close (void *device);
> >
> >
> In the queue class in zmq_queue.cpp, i took the decision to pass in
> sockets
> like this for the same reason.

I like this solution. This way I can create my own configuration
management where I somehow specify the sockets, endpoints, types,
options, etc. Then I create all those sockets in C code and pass them to
higher-level functions that create the final topology.

> I quite like this as a C solution and a more friendly C++ could be
> I also see gonzalo's point about the loop being run outside ( I
> implemented
> the zmq_poll loop in a method called run on my queue class., but it
> looks like for maximum
> flexibility it should be outside.

Yes, this is a must in my architecture and it is very convenient.

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