From: aaronsw Date: Sun, 21 Jul 2002 07:15:41 +0000 (+0000) Subject: added some corrections to the quick start... is there a replacement for populateTable... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41cfe7f09996572946ddcecf950fb8aeaf6e6a46;p=quix0rs-apt-p2p.git added some corrections to the quick start... is there a replacement for populateTable, drue? --- diff --git a/README.txt b/README.txt index 141e5fa..7e6135b 100644 --- a/README.txt +++ b/README.txt @@ -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