added get_full_peer_list to retrieve all the peers known for a swarm

This commit is contained in:
Arvid Norberg
2008-04-13 06:32:48 +00:00
parent 643deb699f
commit 17c4257cce
5 changed files with 36 additions and 0 deletions

View File

@@ -189,6 +189,18 @@ namespace libtorrent
int upload_rate_peak;
};
struct TORRENT_EXPORT peer_list_entry
{
enum flags_t
{
banned = 1,
};
tcp::endpoint ip;
int flags;
boost::uint8_t failcount;
boost::uint8_t source;
};
}
#endif // TORRENT_PEER_INFO_HPP_INCLUDED

View File

@@ -298,6 +298,7 @@ namespace libtorrent
void resolve_peer_country(boost::intrusive_ptr<peer_connection> const& p) const;
void get_full_peer_list(std::vector<peer_list_entry>& v) const;
void get_peer_info(std::vector<peer_info>& v);
void get_download_queue(std::vector<partial_piece_info>& queue);

View File

@@ -284,6 +284,7 @@ namespace libtorrent
torrent_handle() {}
void get_full_peer_list(std::vector<peer_list_entry>& v) const;
void get_peer_info(std::vector<peer_info>& v) const;
torrent_status status() const;
void get_download_queue(std::vector<partial_piece_info>& queue) const;