mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
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:
+21
-10
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user