diff --git a/docs/features.html b/docs/features.html index 026748c13..d4eec518a 100644 --- a/docs/features.html +++ b/docs/features.html @@ -87,7 +87,7 @@ some DHT extensions
Bindings
diff --git a/docs/manual.html b/docs/manual.html index 72a6d564a..91c86bf39 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -50,246 +50,247 @@construct a session
load session state from settings file (see load_state() save_state())
+start extensions (see add_extension()).
start DHT, LSD, UPnP, NAT-PMP etc (see start_dht() stop_dht() set_dht_settings() dht_state() is_dht_running() @@ -319,6 +322,8 @@ the session, it conta
save resume data for all torrent_handles (optional, see save_resume_data())
save session state (see load_state() save_state())
+destruct session object
+++void load_state(lazy_entry const& e); +void save_state(entry& e) const; ++
loads and saves all session settings, including dht_settings, encryption settings and proxy +settings. save_state writes all keys to the entry that's passed in, which needs to +either not be initialized, or initialized as a dictionary.
+load_state expects a lazy_entry which can be built from a bencoded buffer with +lazy_bdecode.
+@@ -1838,6 +1860,10 @@ struct announce_entry { 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; @@ -1857,6 +1883,9 @@ struct announce_entry 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.
fails is the number of times in a row we have failed to announce to this @@ -2041,7 +2070,7 @@ struct torrent_handle bool resolve_countries() const; enum deadline_flags { alert_when_available = 1 }; - void set_piece_deadline(int index, time_duration deadline, int flags = 0) const; + void set_piece_deadline(int index, int deadline, int flags = 0) const; void piece_availability(std::vector<int>& avail) const; void piece_priority(int index, int priority) const; @@ -2098,7 +2127,7 @@ guarantee that a handle will remain valid between two calls.
enum deadline_flags { alert_when_available = 1 }; -void set_piece_deadline(int index, time_duration deadline, int flags = 0) const; +void set_piece_deadline(int index, int deadline, int flags = 0) const;This function sets or resets the deadline associated with a specific piece @@ -2113,8 +2142,7 @@ piece has been downloaded, by passing alert_when_available flag is set, in which case it will do the same thing as calling read_piece() for index.
-In the python binding for this function, the deadline is the number of milliseconds -as an integer.
+deadline is the number of milliseconds until this piece should be completed.
HTTP errors:
+150 | +http_parse_error | +The HTTP header was not correctly formatted | +
151 | +http_missing_location | +The HTTP response was in the 300-399 range but lacked a location +header | +
152 | +http_failed_decompress | +The HTTP response was encoded with gzip or deflate but +decompressing it failed | +
I2P errors:
+160 | +no_i2p_router | +The URL specified an i2p address, but no i2p router is configured | +
The names of these error codes are declared in then libtorrent::errors namespace.
There is also another error category, libtorrent::upnp_category, defining errors retrned by UPnP routers. Here's a (possibly incomplete) list of UPnP error codes:
diff --git a/docs/projects.html b/docs/projects.html index c58341f2f..9896454f1 100644 --- a/docs/projects.html +++ b/docs/projects.html @@ -40,7 +40,7 @@ project listed here, let - +tonidoplug
Tonidoplug is a tiny, low-power, low-cost home server and NAS device powered by Tonido software that allows you to access