This is an old revision of the document!

The easiest way to do it is by:

clear all

If you don't want to lose your current workspace you can do

clear peer

or alternatively

peer('tcpserver',   'stop')
peer('announce',    'stop')
peer('discover',    'stop')
peer('expire',      'stop')

Both ways will stop the threads created by peer.m (which is called by peermaster.m and peerslave.m)