|
|
il y a 2 jours | |
|---|---|---|
| .. | ||
| bep44 | il y a 2 jours | |
| containers | il y a 2 jours | |
| int160 | il y a 2 jours | |
| k-nearest-nodes | il y a 2 jours | |
| krpc | il y a 2 jours | |
| peer-store | il y a 2 jours | |
| traversal | il y a 2 jours | |
| types | il y a 2 jours | |
| LICENSE | il y a 2 jours | |
| README.md | il y a 2 jours | |
| addr.go | il y a 2 jours | |
| announce.go | il y a 2 jours | |
| bootstrap.go | il y a 2 jours | |
| bucket.go | il y a 2 jours | |
| dht.go | il y a 2 jours | |
| dns.go | il y a 2 jours | |
| doc.go | il y a 2 jours | |
| errnos-not-windows.go | il y a 2 jours | |
| errnos_windows.go | il y a 2 jours | |
| expvar.go | il y a 2 jours | |
| globals.go | il y a 2 jours | |
| hash-tuple.go | il y a 2 jours | |
| misc.go | il y a 2 jours | |
| nearest-nodes.go | il y a 2 jours | |
| node.go | il y a 2 jours | |
| nodes_file.go | il y a 2 jours | |
| security.go | il y a 2 jours | |
| server.go | il y a 2 jours | |
| table.go | il y a 2 jours | |
| tokens.go | il y a 2 jours | |
| transaction.go | il y a 2 jours | |
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.
Here I'll describe what some of the provided commands in ./cmd do.
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%)