From e8a0ace7395c9328f006d39ead6d4f93c3a1efb4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 7 Sep 2008 09:59:54 +0000 Subject: [PATCH] added a key to scrape the tracker for a torrent in client_test --- examples/client_test.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 30a6c040b..507950ba3 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1151,6 +1151,12 @@ int main(int ac, char* av[]) if (h.is_valid()) h.set_sequential_download(!h.is_sequential_download()); } + if (c == 'v') + { + torrent_handle h = get_active_torrent(handles); + if (h.is_valid()) h.scrape_tracker(); + } + if (c == 'p') { torrent_handle h = get_active_torrent(handles); @@ -1223,7 +1229,7 @@ int main(int ac, char* av[]) std::stringstream out; out << "[q] quit [i] toggle peers [d] toggle downloading pieces [p] toggle paused " "[a] toggle piece bar [s] toggle download sequential [f] toggle files " - "[j] force recheck [space] toggle session pause [c] clear error\n" + "[j] force recheck [space] toggle session pause [c] clear error [v] scrape\n" "[1] toggle IP [2] toggle AS [3] toggle timers [4] toggle block progress " "[5] toggle peer rate [6] toggle failures [7] toggle send buffers\n";