* Added interface for changing download priority.

* More throttle fiddling.

* Pop the currently uploaded piece from the send list.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@591 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-11-01 19:42:07 +00:00
parent 1a68177eca
commit 89e69adb7a
4 changed files with 22 additions and 15 deletions
+6 -2
View File
@@ -52,10 +52,13 @@ Download::Download() :
void
Download::start() {
if (is_done())
if (is_done()) {
m_download.set_connection_type(m_connectionSeed);
else
torrent::download_set_priority(m_download, 2);
} else {
m_download.set_connection_type(m_connectionLeech);
torrent::download_set_priority(m_download, 4);
}
m_download.start();
}
@@ -98,6 +101,7 @@ Download::release_download() {
void
Download::receive_finished() {
m_download.set_connection_type(m_connectionSeed);
torrent::download_set_priority(m_download, 2);
}
void