[zeromq-dev] Initial support for zmq_poll() under Java

gonzalo diethelm gdiethelm at dcv.cl
Thu Feb 25 21:55:59 CET 2010

> > Btw, have you thought of having "Pollset" object that you can
> add/remove
> > sockets from, something like this:
> >
> > Pollset p = new Pollset ();
> > int s1_index = p.add (s1);
> > in s2_index = p.add (s2);
> > p.poll ();
> > bool canRead = p.pollin (s1_index);
> > etc.
> >
> > It's not entirely polished but the nice thing is that you don't have
> to
> > build the pollset each time you are doing poll.
> You mean implementing this object in Java, where the current separate
> arrays become a hidden implementation detail? That seems like a good
> idea. I will try it out and, if it works out, I will make that part of
> the next patch.

I did this part first. Find attached a new patch (MIT-licensed) that
moves (in Java) the polling function to a Poller object.

I reinstalled emacs and think I solved the tabs vs. spaces issue. Do you
see the same on your end?

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. 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-java-poller.txt
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100225/c8ffa3b1/attachment.txt>

More information about the zeromq-dev mailing list