From ff6cbbc6b65897bf3c1673e917300c7926e1b38e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 12 Jul 2008 17:00:52 +0000 Subject: [PATCH] added torrent_handle::clear_error() to retry a torrent that is in an error state (torrent_status::error is set) --- bindings/python/src/torrent_handle.cpp | 1 + docs/manual.html | 216 +++++++++++++------------ docs/manual.rst | 10 ++ examples/client_test.cpp | 8 +- include/libtorrent/torrent.hpp | 2 + include/libtorrent/torrent_handle.hpp | 2 + src/torrent.cpp | 8 + src/torrent_handle.cpp | 6 + 8 files changed, 150 insertions(+), 103 deletions(-) diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index 09e6d8d10..343ef27bb 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -267,6 +267,7 @@ void bind_torrent_handle() .def("is_paused", _(&torrent_handle::is_paused)) .def("pause", _(&torrent_handle::pause)) .def("resume", _(&torrent_handle::resume)) + .def("clear_error", _(&torrent_handle::clear_error)) .def("is_auto_managed", _(&torrent_handle::is_auto_managed)) .def("auto_managed", _(&torrent_handle::auto_managed)) diff --git a/docs/manual.html b/docs/manual.html index 502298be8..95c0e9a57 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -97,130 +97,131 @@
  • set_peer_upload_limit() set_peer_download_limit()
  • pause() resume() is_paused()
  • force_recheck()
  • -
  • resolve_countries()
  • -
  • is_seed()
  • -
  • is_auto_managed() auto_managed()
  • -
  • has_metadata()
  • -
  • set_tracker_login()
  • -
  • trackers() replace_trackers()
  • -
  • add_url_seed() remove_url_seed() url_seeds()
  • -
  • queue_position() queue_position_up() queue_position_down() queue_position_top() queue_position_bottom()
  • -
  • use_interface()
  • -
  • info_hash()
  • -
  • set_max_uploads() set_max_connections()
  • -
  • save_resume_data()
  • -
  • status()
  • -
  • get_download_queue()
  • -
  • get_peer_info()
  • -
  • get_torrent_info()
  • -
  • is_valid()
  • +
  • clear_error()
  • +
  • resolve_countries()
  • +
  • is_seed()
  • +
  • is_auto_managed() auto_managed()
  • +
  • has_metadata()
  • +
  • set_tracker_login()
  • +
  • trackers() replace_trackers()
  • +
  • add_url_seed() remove_url_seed() url_seeds()
  • +
  • queue_position() queue_position_up() queue_position_down() queue_position_top() queue_position_bottom()
  • +
  • use_interface()
  • +
  • info_hash()
  • +
  • set_max_uploads() set_max_connections()
  • +
  • save_resume_data()
  • +
  • status()
  • +
  • get_download_queue()
  • +
  • get_peer_info()
  • +
  • get_torrent_info()
  • +
  • is_valid()
  • -
  • torrent_status
  • -
  • peer_info
  • -
  • session_settings
  • -
  • pe_settings
  • -
  • proxy_settings
  • -
  • ip_filter