nictuku / dht

Kademlia/Mainline DHT node in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to put infohashs into the network?

benjojo opened this issue · comments

Hey I am looking to store (publish my ownership of a infohash) is there a way this library can do this?

Yes, use the PeersRequest method and set "announce" to True. If I recall correctly, that assumes the Torrent server is on the server port as the DHT, although on the TCP port.

Let me know how that works for you.

Aaa, Woops looks like I forgot to read the docs. Thanks!

I don't think you are at fault, the API isn't clear enough. This method is called "PeersRequest" but one parameter changes its behavior completely, which is very confusing. I'll consider improving the API in the future.