* Added "max_{up,down}loads_{div,global}" options and man page entries.

* PCB::should_request() didn't check if m_downUnchoked was true, just
m_downChoke.choked(). This would cause requests to be sent while we
were still choked by remote.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@871 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-03-20 16:13:20 +00:00
parent 3b13fc7f05
commit 59c6f97cb9
4 changed files with 137 additions and 59 deletions
+9
View File
@@ -84,6 +84,12 @@ public:
void adjust_down_throttle(int throttle);
void adjust_up_throttle(int throttle);
unsigned int max_uploads_global() { return m_maxUploadsGlobal; }
void set_max_uploads_global(int64_t slots);
unsigned int max_downloads_global() { return m_maxDownloadsGlobal; }
void set_max_downloads_global(int64_t slots);
void enable_input(const std::string& title, input::TextInput* input);
void disable_input();
@@ -101,6 +107,9 @@ private:
WStatusbar* m_windowStatusbar;
input::Bindings m_bindings;
unsigned int m_maxUploadsGlobal;
unsigned int m_maxDownloadsGlobal;
};
}