[zeromq-dev] DEALER <--> ROUTER <--> Double Read() is so slow. Please have a look at the codes.

crocket crockabiscuit at gmail.com
Mon Apr 15 09:43:25 CEST 2013


> This is doing a round-trip, right?

In the java program, I have a DEALER socket named "tagReader", and I use it
as below.

for(String addr : addrArray)
    tagReader.send(addr.getBytes(charset));

for(int j=0; j<length; ++j)
    Double.parseDouble(new String(tagReader.recv(), charset));

Thus, I think it's not doing a round-trip on the java side, but what about
on the LabVIEW side?

For each message sent by tagReader, the LabVIEW program retrieves "addr"
from the ROUTER socket, passes addr to a method named "Read Tag", converts
the returned value to a string, and sends the string back to DEALER.

It looks like a round trip on the LabVIEW side.

Am I getting it wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130415/25e66a45/attachment.htm>


More information about the zeromq-dev mailing list