I have been going over the guideline for 0MQ bindings (http://www.zeromq.org/guidelines:bindings) and I am convinced there are a few changes to be done on the Java binding to bring it into closer compliance. They are:
1. The ZMQ namespace and 0MQ's constants: the current binding has constants under org.zmq.Context (POLL), org.zmq.Socket (lots of them) and org.zmq.Poller (POLLIN, POLLOUT and POLLERR). They should all be placed under a single ZMQ namespace; how do we do this? One way could be to create org.zmq.ZMQ as an empty class with just the constants. Anybody can suggest something else? 2. I recently added destroy() methods to Context and Socket, but they will be renamed to term() and close(), respectively. 3. I will add a socket() function to org.zmq.Context, so that sockets will be created by calling this function. They can also be created by creating a new org.zmq.Socket object, as it is now. I will also add a poller() function. 4. I would like to review the use of assert() in the native functions; I am not sure whether they should stay the way they are, or they should be turned into raising exceptions, so that every single error condition in native code ends up being reported to the calling Java code. This is my plan. I would appreciate comments and suggestions, even if they are "don't do step X, you moron!". Thanks and best regards. -- 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 [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
