Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 335 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 335 Bytes

dht

golang dht(Distributed Hash Table) node

Developing!!!

Install

go get -u github.com/bttown/dht

Usage

node := dht.NewNode(dht.OptionAddress("0.0.0.0:8661"))
	node.PeerHandler = func(ip string, port int, hashInfo, peerID string) {
		log.Println("new announce_peer query", hashInfo)
	}
node.Serve()