0.0.0 • Published 10 years ago

node-kademlia v0.0.0

Weekly downloads
2
License
BSD-2-Clause
Repository
-
Last release
10 years ago

nodejs kademlia implementation

Just implement the algorithm about kth-buckets, the networking protocol are not included. A test suit based on node-message-center and websocket and unix socket are included as well as an node lookup interface. But the ideas that the network node it self maintains the nearest neighbors by the size limit of kth-bucket are inside algorightm but not tested in the test case. Because how to maintaining the neighbors and survive the better node is sort of application associated strategy.

Thus is implementation are just a practice rather than an complete library.

test

Note: you need at lest 4GB FREE ram to run the test.

cd test;
coffee test.coffee # open clients

# another terminal
cd test
coffee interface.coffee <id> # id can be int the test.coffee print