Talk:ZMQ REQ Message Source

From GNU Radio
Jump to: navigation, search

Mini-tutorial as part of the Example Flowgraph section.

Example Flowgraphs[edit]

Inter-flowgraph[edit]

Request/Reply pairs can be used on one, or two separate, flowgraphs to exchange messages.

REQ REP msg demo fg.png

External Python client (send only)[edit]

An external Python program can send messages to a ZMQ REQ Message Source block. An example flowgraph and Python code follow.

GNU Radio as a server[edit]

If the GNU Radio flowgraph(s) is configured as a server, the REQ message is processed by the flowgraph and a message is sent back in a REP message as the response. An example flowgraph and Python code follow.