Only add nodes to the routing table that have responded to a request.
authorCameron Dale <camrdale@gmail.com>
Tue, 29 Apr 2008 00:44:45 +0000 (17:44 -0700)
committerCameron Dale <camrdale@gmail.com>
Tue, 29 Apr 2008 00:44:45 +0000 (17:44 -0700)
commit194d18a4f4f1c615eecc7d93f379497e0eb586cd
treec8bf15524714655f995dbabacbfbe8ee7ed40ce1
parent93d19a10800dde7d6bfbc3fa63b0a41507a43446
Only add nodes to the routing table that have responded to a request.

If they haven't, ping them before adding them.
Still ping the old node first to see if it's stale.
Move the temporary functions for ping/join to be module functions.
apt_p2p_Khashmir/DHT.py
apt_p2p_Khashmir/khashmir.py
apt_p2p_Khashmir/ktable.py