dht:golang dht(分布式哈希表)节点 源码
dht golang dht(分布式哈希表)节点 发展!!! 安装 go get -u github.com/bttown/dht 用法 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 ()
用户评论