-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Torrent Details from Infohash #5
Comments
|
Emphasizing on 9th Point, I have a DHT node running. When I do server1.GetPeers, which will give me list of peers by contacting other nodes. Do you have the code by which |
|
TorrentDownloader is implemented as the background task pool, which is inspired by dht.Wire. You can refer to the implementation to implement yourself downloader. |
I have a question, similar to this issue so thought of asking here instead of opening new issue. Can we have a timeout here? Some tracker might not be running and this code take longer than usual & keep waiting https://github.com/xgfone/bt/blob/master/tracker/udptracker/udp_test.go#L106-L114 |
Yes, but we maybe use ctx, cancel := context.WithTimeout(context.Background(), time.Second*3)
defer cancel()
hs := []metainfo.Hash{metainfo.NewRandomHash(), metainfo.NewRandomHash()}
rs, err := client.Scrape(ctx, hs)
// ... |
I have an Infohash of a torrent. Looking for a code by which I can get the details of it using DHT only (no tracker involvement).
Can bootstrap using a router DHT node.
From details, I mean
MetaInfo
structhttps://github.com/xgfone/bt/blob/master/metainfo/metainfo.go#L95
I tried understanding it from source-code but couldn't
The text was updated successfully, but these errors were encountered: