DHTBitTorrent DHT 协议的 GO 实现
DHT 是BitTorrent DHT 协议的实现,采用Go语言。主要包括以下部分:
展示截图:
安装:
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 downloader.Response() { fmt.Println(resp.InfoHash, resp.MetadataInfo) } }() go downloader.Run() config := dht.NewCrawlConfig() config.OnAnnouncePeer = func(infoHash, ip string, port int) { // request to download the metadata info downloader.Request([]byte(infoHash), ip, port) } d := dht.New(config) d.Run() }
评论
MangosSP 协议的 Go 实现
Mangos是一个用纯Go语言实现的("ScalableProtocols")协议。这在GoChannels中被重度使用,但在内部却可在缺少cgo的情况下进行操作。Mangos无需依赖第三方库。Sca
MangosSP 协议的 Go 实现
0
AvalancheGo雪崩协议的 Go 实现
AvalancheGo是Go语言实现的雪崩协议。雪崩协议(Avalanche)是一个为去中心化金融(DeFi)设计的开源区块链平台,该平台具有企业级协作性、高度可扩展性的特点。特性支持用于构建快速、低
AvalancheGo雪崩协议的 Go 实现
0
lipwigSSMP 协议 Go 实现
lipwig是SSMP协议的开源Go实现。包布局:aerofs.com/lipwig/ standalone server ssmp co
lipwigSSMP 协议 Go 实现
0
Go Ethereum官方 Go 实现的以太坊协议
Go Ethereum 是官方使用 Go 语言实现的以太坊协议,也是 Ethereum 协议的三个原
Go Ethereum官方 Go 实现的以太坊协议
0
Go Ethereum官方 Go 实现的以太坊协议
GoEthereum是官方使用Go语言实现的以太坊协议,也是Ethereum协议的三个原始实现之一(另外两个是C++和Python)。它是用Go编写的,完全开放源代码。GoEthereum可以作为一个
Go Ethereum官方 Go 实现的以太坊协议
0