https://github.com/imatix/zguide/tree/master/examples
g++ -o hwserver -lzmq hwserver.c
- 0, print the zmq library version
./version
Current 0MQ version is 4.1.4
- 1, one server which replies to the request of one client (REQ, REP)
run in two terminals the server and the client
./hwserver
./hwclient
- 2, a publishing server, a client which subscribes and publishes further and a sink which subscribes and collects the results (PUSH, PULL)
start the workers
source workers.sh
start the sink
./tasksink
start the ventilator (sampler)
./taskvent
(enter)
- 3, a publishing server and a filtering client (PUB, SUB)
start the server
./wuserver
start the client with a zip code to filter
./wuclient 63000