interface for dht
[brdnet.git] / dht.pas
bloba30772b2c784a8294c9e8d62d1926ab4d5179ade
1 unit DHT;
3 implementation of custom dht, based on pastry and kademlia.
4 keyspace is divided into buckets of limited capacity
5 node belongs to bucket, where at least 'depth' bits match 'prefix'
8 {used by: messages, fileshare}
10 INTERFACE
11 uses NetAddr;
12 type tPID=array [0..19] of byte;
13 var MyID:tPID;
14 procedure AddNode(const contact:tNetAddr);
15 procedure Get(const id:tPID; out result:array of tNetAddr);
17 IMPLEMENTATION
19 END.