基于 Node.js 的 DHT 实现 Kademlia
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/nikhilm/kademlia
- 软件文档: https://github.com/nikhilm/kademlia
软件介绍
Kademlia 是基于 Node.js 的 DHT (分布式哈希表)实现。
使用方法:
var dht = require('kademlia')
var node = new dht.KNode({ address: 'IP address', port: portNumber });
node.connect('existing peer ip', port);
node.set('foo', 'bar');
node.get('foo', function(err, data) {
console.log("Retrieved", data, "from DHT");
console.log(data == 'bar');
});
Data Structures and Algorithms
Alfred V. Aho、Jeffrey D. Ullman、John E. Hopcroft / Addison Wesley / 1983-1-11 / USD 74.20
The authors' treatment of data structures in Data Structures and Algorithms is unified by an informal notion of "abstract data types," allowing readers to compare different implementations of the same......一起来看看 《Data Structures and Algorithms》 这本书的介绍吧!
