[zeromq-dev] Java binding

Martin Sustrik sustrik at 250bpm.com
Fri Feb 19 08:42:52 CET 2010

Hi Gonzalo,

>    1. Function zmq_poll() does not seem to be currently supported under
>       Java. Is there a fundamental reason that makes it impossible to
>       support it? If not, is anybody working of adding support for it on
>       Java?

No fundamental problem. zmq_poll is quite new and it haven't been 
wrapped in all the bindings yet. Feel free to contribute!

>    2. Why is function createSocket() defined in Context.cpp if it is
>       only called (in a convoluted, dynamic manner) from Socket.cpp?
>       Wouldn’t it make more sense to move it to Socket.cpp?

It's done that way because zmq_socket needs context pointer which in not 
available in the Socket object. But maybe it can be made neater? Maybe 
it can be called in dynamic manner? Maybe Socket can get the context 
pointer from the Context object in more sane way? Once again - feel free 
to contribute.


More information about the zeromq-dev mailing list