What is Type in dht/findpeer

From @thisconnect on Sun Apr 02 2017 11:19:24 GMT+0000 (UTC)

What is the Type (Int) described in the Response of dht/findpeer?

And will the js-ipfs-api support api.dht.findpeer in the future?

Copied from original issue: https://github.com/ipfs/faq/issues/245

From @thisconnect on Sun Apr 02 2017 11:20:04 GMT+0000 (UTC)

I’m not sure where to read and get more info about DHT… is that more libp2p specific?

From @Kubuxu on Mon Apr 03 2017 13:38:59 GMT+0000 (UTC)

It is this: https://github.com/libp2p/go-libp2p-routing/blob/master/notifications/query.go#L16

Where numbers increase from 0 for every line.

From @thisconnect on Mon Apr 03 2017 18:48:35 GMT+0000 (UTC)

Thanks @Kubuxu !

reference for myself


0 PeerResponse
1 FinalPeer
2 QueryError
3 Provider
4 Value
5 AddingPeer
6 DialingPeer