libtorrent API Documentation
-
-
-
-
-
-
@@ -332,13 +318,15 @@ class session: public boost::noncopyable
session(fingerprint const& print
= libtorrent::fingerprint(
"LT", 0, 1, 0, 0)
- , int flags = start_default_features | add_default_plugins);
+ , int flags = start_default_features | add_default_plugins
+ , int alert_mask = alert::error_notification);
session(
fingerprint const& print
, std::pair<int, int> listen_port_range
, char const* listen_interface = 0
- , int flags = start_default_features | add_default_plugins);
+ , int flags = start_default_features | add_default_plugins
+ , int alert_mask = alert::error_notification);
torrent_handle add_torrent(add_torrent_params const& params);
@@ -442,12 +430,14 @@ The main thread will be idle as long it doesn't have any torrents to participate
session(fingerprint const& print
= libtorrent::fingerprint("LT", 0, 1, 0, 0)
- , int flags = start_default_features | add_default_plugins);
+ , int flags = start_default_features | add_default_plugins
+ , int alert_mask = alert::error_notification);
session(fingerprint const& print
, std::pair<int, int> listen_port_range
, char const* listen_interface = 0
- , int flags = start_default_features | add_default_plugins);
+ , int flags = start_default_features | add_default_plugins
+ , int alert_mask = alert::error_notification);
If the fingerprint in the first overload is omited, the client will get a default
@@ -461,6 +451,7 @@ the parameters, see listen_on()
The flags paramater can be used to start default features (upnp & nat-pmp) and default plugins
(ut_metadata, ut_pex and smart_ban). The default is to start those things. If you do not want
them to start, pass 0 as the flags parameter.
+The alert_mask is the same mask that you would send to set_alert_mask.
~session()
@@ -2301,6 +2292,14 @@ while (num_resume_data > 0)
if (a == 0) break;
std::auto_ptr<alert> holder = ses.pop_alert();
+
+ if (dynamic_cast<save_resume_data_failed_alert const*>(a))
+ {
+ process_alert(a);
+ --num_resume_data;
+ continue;
+ }
+
save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a);
if (rd == 0)
{
@@ -2436,7 +2435,8 @@ struct torrent_status
downloading,
finished,
seeding,
- allocating
+ allocating,
+ checking_resume_data
};
state_t state;
@@ -2518,6 +2518,12 @@ current task is in the
state
+checking_resume_data |
+The torrent is currently checking the fastresume data and
+comparing it to the files on disk. This is typically
+completed in a fraction of a second, but if you add a
+large number of torrents at once, they will queue up. |
+
queued_for_checking |
The torrent is in the queue for being checked. But there
currently is another torrent that are being checked.
@@ -3069,6 +3075,8 @@ struct session_settings
bool prioritize_partial_pieces;
int auto_manage_startup;
+
+ bool rate_limit_ip_overhead;
};
user_agent this is the client identification to the tracker.
@@ -3292,6 +3300,8 @@ proportion.
active after it was started, regardless of upload and download speed. This
is so that newly started torrents are not considered inactive until they
have a fair chance to start downloading.
+If rate_limit_ip_overhead is set to true, the estimated TCP/IP overhead is
+drained from the rate limiters, to avoid exceeding the limits with the total traffic
pe_settings
diff --git a/docs/projects.html b/docs/projects.html
index 1f9fd851a..7853141bc 100644
--- a/docs/projects.html
+++ b/docs/projects.html
@@ -31,20 +31,6 @@
projects using libtorrent
-
-
-
-
-
-
These are some of the public projects that uses libtorrent. If you want your
project listed here, let me know.
diff --git a/docs/python_binding.html b/docs/python_binding.html
index 1e3a225a4..7a0a9205c 100644
--- a/docs/python_binding.html
+++ b/docs/python_binding.html
@@ -31,20 +31,6 @@
libtorrent python binding
-
-
-
-
-
-
diff --git a/docs/udp_tracker_protocol.html b/docs/udp_tracker_protocol.html
index 2d4ffc6bb..7c7acc863 100644
--- a/docs/udp_tracker_protocol.html
+++ b/docs/udp_tracker_protocol.html
@@ -31,20 +31,6 @@
Bittorrent udp-tracker protocol extension
-
-
-
-
-
-
|