* Cache the current ceiling in rak::partial_queue.

* Added "enable_trackers=yes|no" option that can turn on/off the use
of trackers on all torrents.

* Cleanup of the API, including a new TrackerList class.

* When requesting from seeders, either continue a chunk another seeder
started or try a new one. This means seeders don't end up downloading
non-rare chunks.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@658 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-03-28 21:04:07 +00:00
parent a811f53301
commit 8ea6f78e21
10 changed files with 108 additions and 64 deletions
+4 -3
View File
@@ -49,6 +49,7 @@
#include <torrent/object.h>
#include <torrent/connection_manager.h>
#include <torrent/exceptions.h>
#include <torrent/tracker_list.h>
#include "utils/variable_map.h"
@@ -63,12 +64,12 @@
namespace core {
static void
connect_signal_network_log(Download* d, torrent::Download::SlotString s) {
connect_signal_network_log(Download* d, torrent::Download::slot_string_type s) {
d->get_download().signal_network_log(s);
}
static void
connect_signal_storage_log(Download* d, torrent::Download::SlotString s) {
connect_signal_storage_log(Download* d, torrent::Download::slot_string_type s) {
d->get_download().signal_storage_error(s);
}
@@ -289,7 +290,7 @@ Manager::receive_download_done_hash_checked(Download* d) {
// Don't send if we did a hash check and found incompelete chunks.
if (d->is_done())
d->get_download().tracker_send_completed();
d->get_download().tracker_list().send_completed();
}
void