added support for min_interval

This commit is contained in:
Arvid Norberg
2009-12-02 04:05:24 +00:00
parent 2d627c1f9d
commit 1e654220fa
12 changed files with 109 additions and 96 deletions

View File

@@ -1713,6 +1713,10 @@ ones with lower tier will always be tried before the one with higher tier number
{
announce_entry(std::string const& url);
std::string url;
int next_announce_in() const;
int min_announce_in() const;
boost::uint8_t tier;
boost::uint8_t fail_limit;
boost::uint8_t fails;
@@ -1732,6 +1736,10 @@ ones with lower tier will always be tried before the one with higher tier number
bool complete_sent:1;
};
``next_announce_in()`` returns the number of seconds to the next announce on
this tracker. ``min_announce_in()`` returns the number of seconds until we are
allowed to force another tracker update with this tracker.
``fail_limit`` is the max number of failures to announce to this tracker in
a row, before this tracker is not used anymore.