discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] ZMQ REQ / REP naming Swap?


From: Michael Dickens
Subject: [Discuss-gnuradio] ZMQ REQ / REP naming Swap?
Date: Thu, 28 Jul 2016 14:59:12 -0400

I'm trying to work with the ZQM REQ / REP message blocks while learning
about ZMQ. From their overview guide < http://zguide.zeromq.org/page:all
>, they define various graphs where the interconnects are the ZMQ
connections.

Thus, for example, in Figure 4 "Publish-Subscribe", the PUB would be GR
sinks: taking in messages / data & publishing it to a ZMQ SUB; the ZPQ
SUB would be GR sources: receiving data from ZMQ SUB & pushing out
message. Looking in GRC, these blocks align with my expectations.

Ditto for Figure 5 "Parallel Pipeline" using ZMQ PUSH (GR sink) and ZMQ
PULL (GR source).

But this model doesn't work for the REP / REQ in Figure 2
"Request-Reply". I would expect the ZMQ REQ to be a GR sink but instead
if is a source; likewise, I'd expect the ZMQ REP to be a GR source & it
is instead a sink.

The internal coding is consistent with the external naming; I just
question whether the naming was swapped. Am I missing something? - MLD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]