[libtorrent] Torrent error handling
Brought to you by:
arvidn
From: Oscar A. O. E. <osc...@gm...> - 2009-05-20 12:58:36
|
Hi everybody. I´m trying to implement a clean way to get torrent error conditions the same way I´m retrieving torrent_status like torrent_status::downloading or torrent_status::seeding. I was unable to find such a functionality. Tried with the pop_alert () like in client_test.cpp but I don´t get nothing popped out, although I ´m working with a torrent file with a known non existent tracker. Why are the alert stacks session oriented? And how can you find the failing torrent in session and the corresponding error status? My need is to manage some (high level) rough error conditions like: Tracker not Responding. No network. .... In the api doc there is a mention to torrent_status::error, but only in the doc. or am I missing something. And I´m also confused whit this documentation entries: struct torrent_alert: alert { // ... torrent_handle handle; }; What are the missing struct elements On the other hand: is there a way to assign a "no activity" torrent timeout. Like download progress being zero for a given period of time? (No peers?) Many thanks! PS: Using Libtorrent 0.13.1 Oscar. Oscar A. Otero Eiras osc...@gm... |