An open API service indexing awesome lists of open source software.

https://github.com/bttown/dht

golang dht(Distributed Hash Table) node
https://github.com/bttown/dht

bep0003 bep0005 bep0009 bep0010 dht dht-node golang infohash p2p

Last synced: 5 months ago
JSON representation

golang dht(Distributed Hash Table) node

Awesome Lists containing this project

README

          

# dht
golang dht(Distributed Hash Table) node

#### Developing!!!

#### Install

go get -u github.com/bttown/dht

#### Usage

```go
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()
```