]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
added some corrections to the quick start... is there a replacement for populateTable...
authoraaronsw <aaronsw>
Sun, 21 Jul 2002 07:15:41 +0000 (07:15 +0000)
committeraaronsw <aaronsw>
Sun, 21 Jul 2002 07:15:41 +0000 (07:15 +0000)
README.txt

index 141e5fa75fd4619f92cf4809642fb829ce2383f1..7e6135b9db810702eac1d06f0a941a39ab12798a 100644 (file)
@@ -1,10 +1,9 @@
 quick example:
 
-import khashmir, threading
+import khashmir, thread
 k = khashmir.Khashmir('127.0.0.1', 4444)
-start_new_thread(k.dispatcher.run, ())
+thread.start_new_thread(k.dispatcher.run, ())
 k.addContact('127.0.0.1', 8080)  # right now we don't do gethostbyname
-k.populateTable()
 
 
 alternatively, you can call k.dispatcher.runOnce() periodically from whatever thread you choose
\ No newline at end of file