Skip to content
This repository has been archived by the owner. It is now read-only.

what is Type in dht/findpeer #245

Closed
thisconnect opened this issue Apr 2, 2017 · 4 comments
Closed

what is Type in dht/findpeer #245

thisconnect opened this issue Apr 2, 2017 · 4 comments

Comments

@thisconnect
Copy link

thisconnect commented Apr 2, 2017

What is the Type (Int) described in the Response of dht/findpeer?
https://ipfs.io/docs/api/#apiv0dhtfindpeer

And will the js-ipfs-api support api.dht.findpeer in the future?
https://github.com/ipfs/js-ipfs-api

@thisconnect
Copy link
Author

thisconnect commented Apr 2, 2017

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

@Kubuxu
Copy link

Kubuxu commented Apr 3, 2017

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

Where numbers increase from 0 for every line.

@thisconnect
Copy link
Author

thisconnect commented Apr 3, 2017

Thanks @Kubuxu !

reference for myself

Type:

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

@flyingzumwalt
Copy link
Contributor

flyingzumwalt commented May 23, 2017

This issue was moved to https://discuss.ipfs.io/t/what-is-type-in-dht-findpeer/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants