* Moved ConnectionList into the API and made rtorrent use it.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1010 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-11-15 14:26:12 +00:00
parent 2fe964059f
commit d86505924b
4 changed files with 15 additions and 9 deletions
+4
View File
@@ -56,6 +56,7 @@ public:
typedef torrent::Download download_type;
typedef torrent::FileList file_list_type;
typedef torrent::TrackerList tracker_list_type;
typedef torrent::ConnectionList connection_list_type;
typedef download_type::ConnectionType connection_type;
static const int variable_hashing_stopped = 0;
@@ -88,9 +89,12 @@ public:
const file_list_type* c_file_list() const { return m_download.file_list(); }
torrent::Object* bencode() { return m_download.bencode(); }
tracker_list_type* tracker_list() { return m_download.tracker_list(); }
uint32_t tracker_list_size() const { return m_download.tracker_list()->size(); }
connection_list_type* connection_list() { return m_download.connection_list(); }
const std::string& message() const { return m_message; }
void set_message(const std::string& msg) { m_message = msg; }