YTSFlix_Go/vendor/github.com/anacrolix/dht
2018-11-04 15:58:15 +01:00
..
krpc init 2018-11-04 15:58:15 +01:00
addr.go init 2018-11-04 15:58:15 +01:00
announce.go init 2018-11-04 15:58:15 +01:00
bucket.go init 2018-11-04 15:58:15 +01:00
dht.go init 2018-11-04 15:58:15 +01:00
doc.go init 2018-11-04 15:58:15 +01:00
expvar.go init 2018-11-04 15:58:15 +01:00
go.mod init 2018-11-04 15:58:15 +01:00
go.sum init 2018-11-04 15:58:15 +01:00
int160.go init 2018-11-04 15:58:15 +01:00
LICENSE init 2018-11-04 15:58:15 +01:00
misc.go init 2018-11-04 15:58:15 +01:00
node.go init 2018-11-04 15:58:15 +01:00
nodes_file.go init 2018-11-04 15:58:15 +01:00
README.md init 2018-11-04 15:58:15 +01:00
security.go init 2018-11-04 15:58:15 +01:00
server.go init 2018-11-04 15:58:15 +01:00
table.go init 2018-11-04 15:58:15 +01:00
tokens.go init 2018-11-04 15:58:15 +01:00
transaction.go init 2018-11-04 15:58:15 +01:00

dht

CircleCI GoDoc Join the chat at https://gitter.im/anacrolix/torrent

Installation

Install the library package with go get github.com/anacrolix/dht, or the provided cmds with go get github.com/anacrolix/dht/cmd/....

Commands

Here I'll describe what some of the provided commands in ./cmd do.

Note that the godo command which is invoked in the following examples builds and executes a Go import path, like go run. It's easier to use this convention than to spell out the install/invoke cycle for every single example.

dht-ping

Pings DHT nodes with the given network addresses.

$ godo ./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%)