]> git.mxchange.org Git - quix0rs-apt-p2p.git/blob - README.txt
test harness update
[quix0rs-apt-p2p.git] / README.txt
1 quick example:
2
3 import khashmir, thread
4 k = khashmir.Khashmir('127.0.0.1', 4444)
5 thread.start_new_thread(k.dispatcher.run, ())
6 k.addContact('127.0.0.1', 8080)  # right now we don't do gethostbyname
7 k.findCloseNodes()
8
9 alternatively, you can call k.dispatcher.runOnce() periodically from whatever thread you choose