8 Commits

Author SHA1 Message Date
Kleissner
66ebf7c91e New DHT function IsNodeContact to check if node is in local routing table 2021-07-07 02:50:12 +02:00
Kleissner
6693d442a6 Add function dht.RefreshBuckets. Use RW mutex for accessing hash table. 2021-04-24 22:42:39 +02:00
Kleissner
27152cb145 Provide old and new peer in ShouldEvict. New comparison function IsNodeCloser.
Remove unused code (which was likely buggy anyway).
2021-04-22 05:45:46 +02:00
Kleissner
d83123bf46 dht.GetClosestContacts introduce custom filter function 2021-04-05 14:45:33 +02:00
Kleissner
3080119fc1 Initial working Kademlia network - peer list exchange is working!
Using the announcement and response messages to exchange peer lists. Fixes in encoding.
Add arbitrary Info structure to DHT Lite/Node.
2021-03-15 22:25:05 +01:00
Kleissner
323f379ee7 Message encoding of announcement and response messages.
More changes coming.
Rename of organization to Peernet s.r.o.
InformationRequest proper termination signal.
2021-03-14 04:30:57 +01:00
Kleissner
f120971944 Initial code of DHT Lite. Requires more testing and iterations (pun intended). 2021-03-08 03:15:52 +01:00
Kleissner
5ff6b5ccc1 DHT: Starting with the fork, initially only the hash table.
The distributed part follows.
2021-03-06 11:55:37 +01:00