]> git.mxchange.org Git - quix0rs-apt-p2p.git/commit
Improve the creation of nodes and move all to the main khashmir class.
authorCameron Dale <camrdale@gmail.com>
Wed, 9 Jan 2008 03:11:59 +0000 (19:11 -0800)
committerCameron Dale <camrdale@gmail.com>
Wed, 9 Jan 2008 03:11:59 +0000 (19:11 -0800)
commit74e8a91349d0b55447de62ce72db692c177bcec7
tree61e22350f94268a523d603ecc2d3fa6e18512203
parent60d34d6f90d03b5c8c714e11c487c152a4aed98e
Improve the creation of nodes and move all to the main khashmir class.

Nodes are now initialized with their id, host and port
(optionally stored in a dict) instead of needing 2 steps.

All other classes now call the main khashmir Node() constructor
which adds the udp connection and table.

Previous actions that called insertNode on the table now
call it on the main khashmir class, so that if buckets are
full they can have a chance of being added.
apt_dht_Khashmir/actions.py
apt_dht_Khashmir/khashmir.py
apt_dht_Khashmir/ktable.py
apt_dht_Khashmir/node.py