Go to the source code of this file.
| char const* alert_doc |
Initial value:
"Base class for all concrete alert classes."
Definition at line 157 of file docstrings.cpp.
Referenced by bind_alert().
| char const* alert_msg_doc |
Initial value:
"Returns a string describing this alert."
Definition at line 160 of file docstrings.cpp.
Referenced by bind_alert().
| char const* alert_severity_doc |
Initial value:
"Returns the severity level for this alert, one of `alert.severity_levels`."
Definition at line 163 of file docstrings.cpp.
Referenced by bind_alert().
| char const* fastresume_rejected_alert_doc |
Initial value:
"This alert is generated when a fastresume file has been passed\n"
"to `session.add_torrent` but the files on disk did not match the\n"
"fastresume file. The string explains the reason why the resume\n"
"file was rejected. It is generated at severity level `alert.severity_levels.warning`."
Definition at line 256 of file docstrings.cpp.
Referenced by bind_alert().
| char const* file_error_alert_doc |
Initial value:
"If the storage fails to read or write files that it needs access\n"
"to, this alert is generated and the torrent is paused. It is\n"
"generated as severity level `alert.severity_levels.fatal`."
Definition at line 171 of file docstrings.cpp.
Referenced by bind_alert().
| char const* hash_failed_alert_doc |
Initial value:
"This alert is generated when a finished piece fails its hash check.\n"
"You can get the handle to the torrent which got the failed piece\n"
"and the index of the piece itself from the alert. This alert is\n"
"generated as severity level `alert.severity_levels.info`."
Definition at line 203 of file docstrings.cpp.
Referenced by bind_alert().
| char const* invalid_request_alert_doc |
Initial value:
"This is a debug alert that is generated by an incoming invalid\n"
"piece request. The handle is a handle to the torrent the peer\n"
"is a member of. Ip is the address of the peer and the request is\n"
"the actual incoming request from the peer. The alert is generated\n"
"as severity level `alert.severity_levels.debug`."
Definition at line 221 of file docstrings.cpp.
Referenced by bind_alert().
| char const* listen_failed_alert_doc |
Initial value:
"This alert is generated when none of the ports, given in the\n"
"port range, to `session` can be opened for listening. This alert\n"
"is generated as severity level `alert.severity_levels.fatal`."
Definition at line 166 of file docstrings.cpp.
Referenced by bind_alert().
| char const* metadata_failed_alert_doc |
Initial value:
"This alert is generated when the metadata has been completely\n"
"received and the info-hash failed to match it. i.e. the\n"
"metadata that was received was corrupt. libtorrent will\n"
"automatically retry to fetch it in this case. This is only\n"
"relevant when running a torrent-less download, with the metadata\n"
"extension provided by libtorrent. It is generated at severity\n"
"level `alert.severity_levels.info`."
Definition at line 240 of file docstrings.cpp.
Referenced by bind_alert().
| char const* metadata_received_alert_doc |
Initial value:
"This alert is generated when the metadata has been completely\n"
"received and the torrent can start downloading. It is not generated\n"
"on torrents that are started with metadata, but only those that\n"
"needs to download it from peers (when utilizing the libtorrent\n"
"extension). It is generated at severity level `alert.severity_levels.info`."
Definition at line 249 of file docstrings.cpp.
Referenced by bind_alert().
| char const* peer_ban_alert_doc |
Initial value:
"This alert is generated when a peer is banned because it has sent\n"
"too many corrupt pieces to us. It is generated at severity level\n"
"`alert.severity_levels.info`. The handle member is a `torrent_handle` to the torrent that\n"
"this peer was a member of."
Definition at line 209 of file docstrings.cpp.
Referenced by bind_alert().
| char const* peer_error_alert_doc |
Initial value:
"This alert is generated when a peer sends invalid data over the\n"
"peer-peer protocol. The peer will be disconnected, but you get its\n"
"ip address from the alert, to identify it. This alert is generated\n"
"is severity level `alert.severity_levels.debug`."
Definition at line 215 of file docstrings.cpp.
Referenced by bind_alert().
| char const* peer_request_doc |
Initial value:
"The `peer_request` contains the values the client sent in its\n"
"request message. ``piece`` is the index of the piece it want data\n"
"from, ``start`` is the offset within the piece where the data should be\n"
"read, and ``length`` is the amount of data it wants."
Definition at line 228 of file docstrings.cpp.
Referenced by bind_alert().
| char const* session_add_torrent_doc |
Initial value:
"Adds a new torrent to the session. Return a `torrent_handle`.\n"
"\n"
":Parameters:\n"
" - `torrent_info`: `torrent_info` instance representing the torrent\n"
" you want to add.\n"
" - `save_path`: The path to the directory where files will be saved.\n"
" - `resume_data (optional)`: The resume data for this torrent, as decoded\n"
" with `bdecode()`. This can be acquired from a running torrent with\n"
" `torrent_handle.write_resume_data()`.\n"
" - `compact_mode (optional)`: If set to true (default), the storage\n"
" will grow as more pieces are downloaded, and pieces are rearranged\n"
" to finally be in their correct places once the entire torrent has\n"
" been downloaded. If it is false, the entire storage is allocated\n"
" before download begins. I.e. the files contained in the torrent\n"
" are filled with zeros, and each downloaded piece is put in its\n"
" final place directly when downloaded.\n"
" - `block_size (optional)`: Sets the preferred request size, i.e.\n"
" the number of bytes to request from a peer at a time. This block size\n"
" must be a divisor of the piece size, and since the piece size is an\n"
" even power of 2, so must the block size be. If the block size given\n"
" here turns out to be greater than the piece size, it will simply be\n"
" clamped to the piece size.\n"
"\n"
":Exceptions:\n"
" - `duplicate_torrent`: If the torrent you are trying to add already\n"
" exists in the session (is either queued for checking, being checked\n"
" or downloading) `add_torrent()` will throw `duplicate_torrent`.\n"
Definition at line 97 of file docstrings.cpp.
Referenced by bind_session().
| char const* session_dht_state_doc |
| char const* session_doc |
| char const* session_init_doc |
Initial value:
"The `fingerprint` is a short string that will be used in\n"
"the peer-id to identify the client and the client's version.\n"
"For more details see the `fingerprint` class.\n"
"The constructor that only takes a fingerprint will not open\n"
"a listen port for the session, to get it running you'll have\n"
"to call `session.listen_on()`."
Definition at line 71 of file docstrings.cpp.
Referenced by bind_session().
| char const* session_is_listening_doc |
| char const* session_listen_on_doc |
| char const* session_listen_port_doc |
| char const* session_pop_alert_doc |
| char const* session_remove_torrent_doc |
Initial value:
"Close all peer connections associated with the torrent and tell the\n"
"tracker that we've stopped participating in the swarm."
Definition at line 126 of file docstrings.cpp.
Referenced by bind_session().
| char const* session_set_download_rate_limit_doc |
| char const* session_set_max_connections_doc |
| char const* session_set_max_half_open_connections_doc |
Initial value:
"Sets the maximum number of half-open connections libtorrent will\n"
"have when connecting to peers. A half-open connection is one where\n"
"connect() has been called, but the connection still hasn't been\n"
"established (nor failed). Windows XP Service Pack 2 sets a default,\n"
"system wide, limit of the number of half-open connections to 10. So, \n"
"this limit can be used to work nicer together with other network\n"
"applications on that system. The default is to have no limit, and passing\n"
"-1 as the limit, means to have no limit. When limiting the number of\n"
"simultaneous connection attempts, peers will be put in a queue waiting\n"
"for their turn to get connected."
Definition at line 138 of file docstrings.cpp.
Referenced by bind_session().
| char const* session_set_max_uploads_doc |
| char const* session_set_settings_doc |
| char const* session_set_severity_level_doc |
| char const* session_set_upload_rate_limit_doc |
| char const* session_start_dht_doc |
| char const* session_status_cache_nodes_doc |
| char const* session_status_dht_nodes_doc |
| char const* session_status_dht_torrents_doc |
| char const* session_status_doc |
| char const* session_status_download_rate_doc |
| char const* session_status_has_incoming_connections_doc |
| char const* session_status_m_doc |
Initial value:
"Returns an instance of `session_status` with session wide-statistics\n"
"and status"
Definition at line 86 of file docstrings.cpp.
Referenced by bind_session().
| char const* session_status_num_peers_doc |
| char const* session_status_payload_download_rate_doc |
| char const* session_status_payload_upload_rate_doc |
| char const* session_status_total_download_doc |
| char const* session_status_total_payload_download_doc |
| char const* session_status_total_payload_upload_doc |
| char const* session_status_total_upload_doc |
| char const* session_status_upload_rate_doc |
| char const* session_stop_dht_doc |
| char const* torrent_finished_alert_doc |
Initial value:
"This alert is generated when a torrent switches from being a\n"
"downloader to a seed. It will only be generated once per torrent.\n"
"It contains a `torrent_handle` to the torrent in question. This alert\n"
"is generated as severity level `alert.severity_levels.info`."
Definition at line 234 of file docstrings.cpp.
Referenced by bind_alert().
| char const* torrent_status_announce_interval_doc |
Initial value:
"The interval at which the torrent will reannounce itself to the\n"
"tracker. An instance of `datetime.timedelta`."
Definition at line 26 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_current_tracker_doc |
Initial value:
"The URL of the last working tracker. If no tracker request has\n"
"been successful yet, it's set to an empty string."
Definition at line 30 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_doc |
Initial value:
"Represents the current status for a torrent.\n"
"Returned by `torrent_handle.status()`."
Definition at line 8 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_next_announce_doc |
Initial value:
"The time until the torrent will announce itself to the\n"
"tracker. An instance of `datetime.timedelta`."
Definition at line 22 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_paused_doc |
Initial value:
"Indicates if this torrent is paused or not."
Definition at line 15 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_progress_doc |
Initial value:
"A value in the range [0, 1], that represents the progress of\n"
"the torrent's current task."
Definition at line 18 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_state_doc |
Initial value:
"The torrents current task. One of `torrent_status.states`."
Definition at line 12 of file docstrings.cpp.
Referenced by bind_torrent_status().
| char const* torrent_status_total_download_doc = "" |
| char const* torrent_status_total_failed_bytes_doc = "" |
| char const* torrent_status_total_payload_download_doc = "" |
| char const* torrent_status_total_payload_upload_doc = "" |
| char const* torrent_status_total_upload_doc = "" |
| char const* tracker_alert_doc |
Initial value:
"This alert is generated on tracker time outs, premature\n"
"disconnects, invalid response or a HTTP response other than\n"
"\"200 OK\". From the alert you can get the handle to the torrent\n"
"the tracker belongs to. This alert is generated as severity level\n"
"`alert.severity_levels.warning`."
Definition at line 180 of file docstrings.cpp.
Referenced by bind_alert().
| char const* tracker_announce_alert_doc |
Initial value:
"This alert is generated each time a tracker announce is sent\n"
"(or attempted to be sent). It is generated at severity level `alert.severity_levels.info`."
Definition at line 176 of file docstrings.cpp.
Referenced by bind_alert().
| char const* tracker_reply_alert_doc |
Initial value:
"This alert is only for informational purpose. It is generated when\n"
"a tracker announce succeeds. It is generated with severity level\n"
"`alert.severity_levels.info`."
Definition at line 187 of file docstrings.cpp.
Referenced by bind_alert().
| char const* tracker_warning_alert_doc |
Initial value:
"This alert is triggered if the tracker reply contains a warning\n"
"field. Usually this means that the tracker announce was successful\n"
", but the tracker has a message to the client. The message string in\n"
"the alert will contain the warning message from the tracker. It is\n"
"generated with severity level `alert.severity_levels.warning`."
Definition at line 192 of file docstrings.cpp.
Referenced by bind_alert().
| char const* url_seed_alert_doc |
Initial value:
"This alert is generated when a HTTP seed name lookup fails. This\n"
"alert is generated as severity level `alert.severity_levels.warning`."
Definition at line 199 of file docstrings.cpp.
Referenced by bind_alert().
1.5.6