Skip to content

frmanso/zmq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The code examples (from the book ZeroMQ by Peter Hintjens, O'Reilly)

https://github.com/imatix/zguide/tree/master/examples

Compiling the code examples

g++ -o hwserver -lzmq hwserver.c

The examples

  • 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

About

Exercices with ZeroMQ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.4%
  • Go 9.1%
  • Shell 0.5%