Description

pair implements a pair example. node0 is a listening pair socket, and node1 is a dialing pair socket.

To use:

$ go build .
$ url=tcp://127.0.0.1:40899
$ ./pair node0 $url & node0=$!
$ ./pair node1 $url & node1=$!
$ sleep 3
$ kill $node0 $node1

main is referenced in 1 repository

github.com/go-mangos/mangos