y500 / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

feature proposal: expose scraping in session api #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be useful to be able to scrape a tracker for a torrent hash
without having to create a torrent first.

This way the liveliness of the torrent could be determined in a lightweight
fashion.

The attached patch exposes scraping in libtorrent::session.

Cheers,
Felix

Original issue reported on code.google.com by berge...@gmail.com on 10 May 2010 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by arvid.no...@gmail.com on 6 Jun 2010 at 3:28

GoogleCodeExporter commented 8 years ago
Thanks for your patch. I'm hesitant to check this in for 2 reasons:

1. It exposes internal structs that are likely to change over time 
(tracker_request and request_callback)

2. It calls back to the client within libtorrent's network thread

The second is relatively easy to fix by replacing the callback mechanism with 
an alert. The first is a bit tricky though, if it should support both udp and 
http trackers.

Original comment by arvid.no...@gmail.com on 15 Jul 2010 at 1:41

GoogleCodeExporter commented 8 years ago
good points. 

Original comment by berge...@gmail.com on 15 Jul 2010 at 5:25