mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
Added -t for dumping tracker requests.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@315 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+11
-1
@@ -8,6 +8,10 @@
|
||||
#include "poll.h"
|
||||
#include "log.h"
|
||||
|
||||
namespace torrent {
|
||||
class Bencode;
|
||||
}
|
||||
|
||||
namespace core {
|
||||
|
||||
class Manager {
|
||||
@@ -16,7 +20,7 @@ public:
|
||||
typedef sigc::slot1<void, DownloadList::iterator> SlotReady;
|
||||
typedef sigc::slot0<void> SlotFailed;
|
||||
|
||||
Manager() : m_portFirst(6890), m_portLast(6999) {}
|
||||
Manager() : m_portFirst(6890), m_portLast(6999), m_debugTracker(-1) {}
|
||||
|
||||
DownloadList& get_download_list() { return m_downloadList; }
|
||||
DownloadStore& get_download_store() { return m_downloadStore; }
|
||||
@@ -40,6 +44,8 @@ public:
|
||||
|
||||
void set_port_range(int a, int b) { m_portFirst = a; m_portLast = b; }
|
||||
|
||||
void debug_tracker() { m_debugTracker = 0; }
|
||||
|
||||
private:
|
||||
void receive_http_done(CurlGet* http);
|
||||
void receive_http_failed(std::string msg);
|
||||
@@ -49,6 +55,8 @@ private:
|
||||
|
||||
iterator create_final(std::istream* s);
|
||||
|
||||
void receive_debug_tracker(torrent::Bencode& bencode);
|
||||
|
||||
DownloadList m_downloadList;
|
||||
DownloadStore m_downloadStore;
|
||||
HashQueue m_hashQueue;
|
||||
@@ -60,6 +68,8 @@ private:
|
||||
std::string m_dns;
|
||||
int m_portFirst;
|
||||
int m_portLast;
|
||||
|
||||
int m_debugTracker;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user