[zeromq-dev] Initial support for zmq_poll() under Java
gonzalo diethelm
gdiethelm at dcv.cl
Thu Feb 25 15:09:06 CET 2010
> > Find attached the patch, MIT-licensed, for adding poll support under
> > Java. This patch does NOT include my logging functions; I
hand-edited
> > it, so if you have any problems applying the patch, let me know.
>
> The patch is corrupt. Can you please generate a new one rather than
> editing it by hand? (You don't have to remove logging, I can do that.)
Here you go. You would have to remove the following (in this order):
* One big block of code protected with #if 0 / #endif.
* All lines with a ZMQ_JAVA_LOG() call.
* All includes of "util.h".
> > 2. We could also have one big public class called ZMQ, with nested
> > public classes:
> >
> > Implementation:
> >
> > package org.zmq;
> >
> > public class ZMQ {
> > public class Context {...}
> > public class Socket {...}
> > ...
> > }
> >
> >
> > Usage:
> >
> > import org.zmq.ZMQ;
> > ...
> > ZMQ.Socket s = new ZMQ.Socket (ctx, ZMQ.REP);
>
> This looks much better!
>
> > This is an API change, though. If you want to go this route, I can
> > prepare a patch after the poll support has been committed.
>
> I would go for it. The current API is plain ugly and it has to be
> changed sooner or later. (Btw, the same change was done to Ruby few
> weeks back. Same with Python.)
Ok, I'll do that after this patch is committed.
--
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-poll.txt
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100225/10d52415/attachment.txt>
More information about the zeromq-dev
mailing list