status-go/vendor/github.com/anacrolix/dht/v2
Andrea Maria Piana 4d15ae8a85 Upgrade to go 1.18 2022-05-11 12:39:54 +01:00
..
bep44 Add torrent library dependency 2022-04-06 11:48:16 +02:00
containers Add torrent library dependency 2022-04-06 11:48:16 +02:00
int160 Add torrent library dependency 2022-04-06 11:48:16 +02:00
k-nearest-nodes Add torrent library dependency 2022-04-06 11:48:16 +02:00
krpc Add torrent library dependency 2022-04-06 11:48:16 +02:00
peer-store Add torrent library dependency 2022-04-06 11:48:16 +02:00
traversal Add torrent library dependency 2022-04-06 11:48:16 +02:00
types Add torrent library dependency 2022-04-06 11:48:16 +02:00
LICENSE Add torrent library dependency 2022-04-06 11:48:16 +02:00
README.md Add torrent library dependency 2022-04-06 11:48:16 +02:00
addr.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
announce.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
bootstrap.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
bucket.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
dht.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
dns.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
doc.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
expvar.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
globals.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
misc.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
nearest-nodes.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
node.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
nodes_file.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
security.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
server.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
table.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
tokens.go Add torrent library dependency 2022-04-06 11:48:16 +02:00
transaction.go Add torrent library dependency 2022-04-06 11:48:16 +02:00

README.md

dht

Go Reference

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%)