pubsub

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

pubsub implements a publish/subscribe example. server is a listening pub socket, and clients are dialing sub sockets.

To use:

$ go build .
$ url=tcp://127.0.0.1:40899
$ ./pubsub server $url server & server=$! && sleep 1
$ ./pubsub client $url client0 & client0=$!
$ ./pubsub client $url client1 & client1=$!
$ ./pubsub client $url client2 & client2=$!
$ sleep 5
$ kill $server $client0 $client1 $client2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL