The client is now responsible for sending completed to tracker, fixes

the problem where doing hash checking of completed torrents would
cause wrong messages to be sent.

Added option to the client for opening a random port in the supplied
port range.

Cleaned up ui::Download and ui::DownloadList handling of throttle keys
and status bar.

Added 60s timeout for handshakes.

Added ignore key function to input::Bindings.

Made the time span of torrent::Rate configurable.

Seperate torrent::Rate object for quick and slow time span in
torrent::ThrottleControl. Also limited the amount the throttle could
over-allocate per tick, not completely fixed.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@480 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-28 20:57:01 +00:00
parent 2c5ce1989a
commit d04adf81ae
20 changed files with 195 additions and 132 deletions
+21 -10
View File
@@ -25,29 +25,40 @@
#include "input/bindings.h"
namespace display {
class WindowStatusbar;
}
namespace ui {
class DownloadList;
class Root {
public:
Root(Control* c) : m_shutdownReceived(false), m_control(c), m_downloadList(NULL) {}
typedef display::WindowStatusbar WStatus;
void init();
void cleanup();
Root(Control* c);
bool get_shutdown_received() { return m_shutdownReceived; }
void set_shutdown_received(bool v) { m_shutdownReceived = v; }
void init();
void cleanup();
bool get_shutdown_received() { return m_shutdownReceived; }
void set_shutdown_received(bool v) { m_shutdownReceived = v; }
private:
void setup_keys();
void setup_keys();
bool m_shutdownReceived;
void receive_read_throttle(int t);
void receive_write_throttle(int t);
Control* m_control;
DownloadList* m_downloadList;
bool m_shutdownReceived;
input::Bindings m_bindings;
Control* m_control;
DownloadList* m_downloadList;
WStatus* m_windowStatus;
input::Bindings m_bindings;
};
}