* Added support for DHT. Patch by Josef Drexler, public domain as per

prior agreement.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1013 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-11-28 15:00:13 +00:00
parent 4e3a867257
commit f05dd5b152
13 changed files with 507 additions and 4 deletions
+4 -2
View File
@@ -190,9 +190,11 @@ print_download_status(char* first, char* last, core::Download* d) {
} else if (d->tracker_list()->has_active() && d->tracker_list()->focus() < d->tracker_list()->end()) {
torrent::TrackerList* tl = d->tracker_list();
char status[128];
first = print_buffer(first, last, "Tracker[%i:%i]: Connecting to %s",
(*tl->focus())->group(), tl->focus_index(), (*tl->focus())->url().c_str());
(*tl->focus())->get_status(status, sizeof(status));
first = print_buffer(first, last, "Tracker[%i:%i]: Connecting to %s %s",
(*tl->focus())->group(), tl->focus_index(), (*tl->focus())->url().c_str(), status);
} else if (!d->message().empty()) {
first = print_buffer(first, last, "%s", d->message().c_str());
+1 -1
View File
@@ -91,7 +91,7 @@ WindowTrackerList::redraw() {
m_canvas->print(4, pos++, "Id: %s Focus: %s Enabled: %s Open: %s S/L: %u/%u",
rak::copy_escape_html(tracker->tracker_id()).c_str(),
range.first == tl->focus_index() ? "yes" : " no",
tracker->is_enabled() ? "yes" : " no",
tracker->is_usable() ? "yes" : tracker->is_enabled() ? "off" : " no",
tracker->is_busy() ? "yes" : " no",
tracker->scrape_complete(),
tracker->scrape_incomplete());