]> git.mxchange.org Git - quix0rs-apt-p2p.git/commit
Use function for sending krpc responses, and add spew parameter.
authorCameron Dale <camrdale@gmail.com>
Thu, 10 Jan 2008 20:45:04 +0000 (12:45 -0800)
committerCameron Dale <camrdale@gmail.com>
Thu, 10 Jan 2008 20:45:04 +0000 (12:45 -0800)
commite6beef78406c3093fc4eb98c4293b9257b44aa61
tree05ef7008c733246d88b5d49de63b1830c972f024
parentd5b449e539511e2eef237bf5c8dbe78cc9191641
Use function for sending krpc responses, and add spew parameter.

Sending a response in the krpc module now calls a function.

There is a new 'SPEW' config variable that causes the krpc
module to spew out all sent and received packet data
(previously called noisy).

Also changed all the tests to use failUnlessEqual instead
of assertEqual, and all assert() commands no longer use
brackets.

Updated some of the downloading tests for the new file sizes
on camrdale.org (need a better solution here).
12 files changed:
apt-dht.py
apt_dht/HTTPDownloader.py
apt_dht/Hash.py
apt_dht/PeerManager.py
apt_dht/apt_dht_conf.py
apt_dht_Khashmir/DHT.py
apt_dht_Khashmir/actions.py
apt_dht_Khashmir/khash.py
apt_dht_Khashmir/khashmir.py
apt_dht_Khashmir/krpc.py
apt_dht_Khashmir/ktable.py
apt_dht_Khashmir/node.py