added get_full_peer_list to retrieve all the peers known for a swarm
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user