[zeromq-dev] peer-to-peer communication using ZMQ

Yoav Agami yoavagami at yahoo.com
Tue Aug 9 08:39:11 CEST 2016

My application uses Side A (JAVA) -> Side B (c++) communication.I looked into it and it seems to support c++, but did not see Java bindings. Does it support Java as well?If not, what would you recommend for this: Java part -> sends messages to C++ part (that supports a timeout, that it will not be blocking) 

    On Tuesday, August 9, 2016 9:21 AM, Kevin Sapper <kevinsapper88 at gmail.com> wrote:

 Have a look at the zactor class of czmq (https://github.com/zeromq/czmq#toc4-228) this should solve you problem.

2016-08-08 17:53 GMT+00:00 Yoav Agami <yoavagami at yahoo.com>:

I am trying to implement inner process communication. The model: Part A -> Sends messages to Part B.
I have implemented this using Client-Server example from tutorial (attached bellow), but facing issues that the process is "locked". What is the best practice to implement this kind of model?It is not classic "Client-Server". Actually just one part sends data to seconds part, and second part uses it.
Is there an option to send a message with a timeout? that it will not lock the process?
Any input / example will be very appreciated!
Server:zmq::context_t context(1);zmq::socket_t socket(context, ZMQ_REP);socket.bind("tcp://*:5555");..socket.recv(&request);
// analyze received data

Client:requester = context.socket(ZMQ.REQ);requester.connect("tcp:// localhost:5555");requester.send(str.getBytes(), 0);byte[] reply = requester.recv(0);
______________________________ _________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/ mailman/listinfo/zeromq-dev

zeromq-dev mailing list
zeromq-dev at lists.zeromq.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160809/be905a06/attachment.htm>

More information about the zeromq-dev mailing list