[zeromq-dev] Improvement(?) for binding and connecting sockets using single method
Panu Wetterstrand
panu.wetterstrand at iki.fi
Wed May 14 09:32:31 CEST 2014
Hello,
we have lots of small ZeroMQ devices written in Java. Mostly we need to
specify how socket connect to others as command line parameter. Because
there is two different methods connect and bind this is not straight
forward. First we have to parse if we should bind or connect and then call
the correct method.
To ease this we have written parser that accepts urls like this:
connect:tcp://localhost:1234
bind:tcp://*:5555:123;connect:ipc:/tmp/blaah
Thus the idea is that one can spesify connection or bind before the actual
zeromq url. Also multiple urls can be definer by separating them using
;-character.
(Java library can be found here
https://bitbucket.org/jyukopla/java-zmq-utils)
My question is:
Would it make any sense implement method to ZeroMQ library that would do
the same thing? Signature would be something like this:
int zmq_associate (void *socket, const char *urlstring);
--
Panu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140514/e73c473d/attachment.htm>
More information about the zeromq-dev
mailing list