DHT是BitTorrentDHT协议的实现,采用Go语言。主要包括以下部分:BEP-3(part)BEP-5BEP-9BEP-10展示截图:安装:go get github.com/shiyanhui/dht使用示例:import (
"fmt"
"github.com/shiyanhui/dht"
)
func main() {
downloader := dht.NewWire()
go func() {
// once we got the request result
for resp := range dow