| Version: | 2.0.8 |
|---|
Table of contents
Declared in "libtorrent/announce_entry.hpp"
struct announce_infohash
{
std::string message;
error_code last_error;
int scrape_incomplete = -1;
int scrape_complete = -1;
int scrape_downloaded = -1;
std::uint8_t fails : 7;
bool updating : 1;
bool start_sent : 1;
bool complete_sent : 1;
};
[report issue]Declared in "libtorrent/announce_entry.hpp"
announces are sent to each tracker using every listen socket this class holds information about one listen socket for one tracker
struct announce_endpoint
{
announce_endpoint ();
tcp::endpoint local_endpoint;
aux::array<announce_infohash, num_protocols, protocol_version> info_hashes;
bool enabled = true;
};
[report issue]Declared in "libtorrent/announce_entry.hpp"
this class holds information about one bittorrent tracker, as it relates to a specific torrent.
struct announce_entry
{
explicit announce_entry (string_view u);
announce_entry& operator= (announce_entry const&) &;
announce_entry (announce_entry const&);
~announce_entry ();
announce_entry ();
enum tracker_source
{
source_torrent,
source_client,
source_magnet_link,
source_tex,
};
std::string url;
std::string trackerid;
std::vector<announce_endpoint> endpoints;
std::uint8_t tier = 0;
std::uint8_t fail_limit = 0;
std::uint8_t source:4;
bool verified:1;
};
[report issue]explicit announce_entry (string_view u); announce_entry& operator= (announce_entry const&) &; announce_entry (announce_entry const&); ~announce_entry (); announce_entry ();
constructs a tracker announce entry with u as the URL.
[report issue]Declared in "libtorrent/announce_entry.hpp"
| name | value | description |
|---|---|---|
| source_torrent | 1 | the tracker was part of the .torrent file |
| source_client | 2 | the tracker was added programmatically via the add_tracker() function |
| source_magnet_link | 4 | the tracker was part of a magnet link |
| source_tex | 8 | the tracker was received from the swarm via tracker exchange |