dht
dht copied to clipboard
Kademlia/Mainline DHT node in Go.
How to use this lib to search and download files, any example?
https://github.com/vitessio/vitess/blob/master/go/cache/lru_cache.go they have added a cost type LRUCache struct { mu sync.Mutex // list & table contain *entry objects. list *list.List table map[string]*list.Element **_cost func(interface{}) int64_** size int64 capacity int64...
When I looked at the code of peerContactsSet, this function seems to be wrong. ```go func (p *peerContactsSet) next() []string { count := kNodes if count > len(p.set) { count...
``` // Read from UDP socket, writes slice of byte into channel. func readFromSocket(socket *net.UDPConn, conChan chan packetType, bytesArena arena, stop chan bool, log DebugLogger) { for { b :=...
This makes the code a bit better, as it makes these odd indirections (pointer to interface) unnecessary, and fixes one logger call that happens inside New() before caller has any...
* added few more well known `DHTRouters` * added optional `PassiveMode` parameter, so the server doesn't responde to any incoming queries (get_peers, ping, etc) * added optional `MaxSearchQueries` parameter to...
was running about 5 hours with that settings ... filling in 1000 searches/hashes in parallel and immediately refill it... I've used a slightly modified [dht.go](https://github.com/nictuku/dht/files/2260001/dht.go.txt) because I had disabled the...
It seems that function "lookupFiltered" is only choosing nodes that "wasContactedRecently", without calculating distance, right?
[BEP 5](http://bittorrent.org/beps/bep_0005.html) has been updated to document the long standing de-facto standard of including a version string in RPC messages. This is an important feature for identifying implementations which may...
Do you have support BEP044? dht_store , If not , then do you have a plan to support it ? Thanks very much!