364838532f | ||
---|---|---|
.. | ||
bep44 | ||
containers | ||
int160 | ||
k-nearest-nodes | ||
krpc | ||
peer-store | ||
traversal | ||
types | ||
LICENSE | ||
README.md | ||
addr.go | ||
announce.go | ||
bootstrap.go | ||
bucket.go | ||
dht.go | ||
dns.go | ||
doc.go | ||
expvar.go | ||
globals.go | ||
go.mod | ||
go.sum | ||
misc.go | ||
nearest-nodes.go | ||
node.go | ||
nodes_file.go | ||
security.go | ||
server.go | ||
table.go | ||
tokens.go | ||
transaction.go |
README.md
dht
Installation
Get the library package with go get github.com/anacrolix/dht/v2
, or the provided cmds with go install github.com/anacrolix/dht/v2/cmd/...@latest
.
Commands
Here I'll describe what some of the provided commands in ./cmd
do.
dht-ping
Pings DHT nodes with the given network addresses.
$ go run ./cmd/dht-ping router.bittorrent.com:6881 router.utorrent.com:6881
2015/04/01 17:21:23 main.go:33: dht server on [::]:60058
32f54e697351ff4aec29cdbaabf2fbe3467cc267 (router.bittorrent.com:6881): 648.218621ms
ebff36697351ff4aec29cdbaabf2fbe3467cc267 (router.utorrent.com:6881): 873.864706ms
2/2 responses (100.000000%)