#include <torrent.hpp>

Definition at line 90 of file torrent.hpp.
| typedef std::map<tcp::endpoint, peer_connection*>::iterator libtorrent::torrent::peer_iterator |
Definition at line 244 of file torrent.hpp.
| typedef std::map<tcp::endpoint, peer_connection*>::const_iterator libtorrent::torrent::const_peer_iterator |
Definition at line 245 of file torrent.hpp.
typedef std::list<boost::shared_ptr<torrent_plugin> > libtorrent::torrent::extension_list_t [private] |
Definition at line 648 of file torrent.hpp.
| libtorrent::torrent::torrent | ( | aux::session_impl & | ses, | |
| aux::checker_impl & | checker, | |||
| torrent_info const & | tf, | |||
| boost::filesystem::path const & | save_path, | |||
| tcp::endpoint const & | net_interface, | |||
| bool | compact_mode, | |||
| int | block_size, | |||
| session_settings const & | s | |||
| ) |
Definition at line 193 of file torrent.cpp.
References asio::detail::socket_ops::bind(), libtorrent::resource_request::given, libtorrent::torrent_info::info_hash(), init(), INVARIANT_CHECK, libtorrent::aux::session_impl::listen_port(), m_connections_quota, m_dht_announce_timer, m_initial_done, m_policy, m_ses, libtorrent::aux::session_impl::m_strand, m_uploads_quota, libtorrent::resource_request::max, libtorrent::resource_request::min, on_dht_announce(), should_announce_dht(), and asio::io_service::strand::wrap().
| libtorrent::torrent::torrent | ( | aux::session_impl & | ses, | |
| aux::checker_impl & | checker, | |||
| char const * | tracker_url, | |||
| sha1_hash const & | info_hash, | |||
| char const * | name, | |||
| boost::filesystem::path const & | save_path, | |||
| tcp::endpoint const & | net_interface, | |||
| bool | compact_mode, | |||
| int | block_size, | |||
| session_settings const & | s | |||
| ) |
Definition at line 279 of file torrent.cpp.
References libtorrent::torrent_info::add_tracker(), asio::detail::socket_ops::bind(), libtorrent::resource_request::given, INVARIANT_CHECK, libtorrent::aux::session_impl::listen_port(), m_connections_quota, m_dht_announce_timer, m_initial_done, m_name, m_policy, m_ses, libtorrent::aux::session_impl::m_strand, m_torrent_file, m_trackers, m_uploads_quota, libtorrent::resource_request::max, libtorrent::resource_request::min, on_dht_announce(), should_announce_dht(), and asio::io_service::strand::wrap().
| libtorrent::torrent::~torrent | ( | ) |
Definition at line 381 of file torrent.cpp.
References disconnect_all(), INVARIANT_CHECK, libtorrent::aux::session_impl::is_aborted(), m_abort, m_connections, and m_ses.
| void libtorrent::torrent::add_extension | ( | boost::shared_ptr< torrent_plugin > | ext | ) |
| void libtorrent::torrent::init | ( | ) |
Definition at line 416 of file torrent.cpp.
References calculate_block_size(), INVARIANT_CHECK, libtorrent::torrent_info::is_valid(), m_block_size, m_default_block_size, libtorrent::aux::session_impl::m_files, m_have_pieces, m_picker, m_save_path, m_ses, m_storage, m_torrent_file, m_web_seeds, libtorrent::torrent_info::num_files(), libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_length(), libtorrent::torrent_info::total_size(), and libtorrent::torrent_info::url_seeds().
Referenced by check_fastresume(), and torrent().
| void libtorrent::torrent::abort | ( | ) |
Definition at line 920 of file torrent.cpp.
References disconnect_all(), INVARIANT_CHECK, m_abort, m_event, m_paused, m_storage, and libtorrent::tracker_request::stopped.
Referenced by libtorrent::aux::checker_impl::operator()(), and libtorrent::aux::session_impl::remove_torrent().
| bool libtorrent::torrent::is_aborted | ( | ) | const [inline] |
Definition at line 134 of file torrent.hpp.
Referenced by libtorrent::policy::check_invariant(), libtorrent::policy::connection_closed(), and libtorrent::aux::session_impl::second_tick().
| bool libtorrent::torrent::is_allocating | ( | ) | const |
| session_settings const & libtorrent::torrent::settings | ( | ) | const |
Definition at line 2194 of file torrent.cpp.
References m_ses, and libtorrent::aux::session_impl::settings().
Referenced by libtorrent::policy::new_connection(), libtorrent::policy::peer_from_tracker(), and libtorrent::request_a_block().
| aux::session_impl& libtorrent::torrent::session | ( | ) | [inline] |
Definition at line 142 of file torrent.hpp.
| void libtorrent::torrent::set_sequenced_download_threshold | ( | int | threshold | ) |
Definition at line 2242 of file torrent.cpp.
References is_seed(), picker(), libtorrent::piece_picker::set_sequenced_download_threshold(), and valid_metadata().
Referenced by libtorrent::torrent_handle::set_sequenced_download_threshold().
| void libtorrent::torrent::second_tick | ( | stat & | accumulator, | |
| float | tick_interval | |||
| ) |
Definition at line 2348 of file torrent.cpp.
References asio::detail::socket_ops::bind(), connect_to_url_seed(), end(), INVARIANT_CHECK, is_seed(), asio::placeholders::iterator, m_connections, m_connections_quota, m_extensions, m_paused, m_policy, m_resolving_web_seeds, m_stat, m_uploads_quota, m_web_seeds, m_web_stat, libtorrent::resource_request::max, libtorrent::resource_request::min, libtorrent::peer_connection::second_tick(), libtorrent::stat::second_tick(), libtorrent::peer_connection::statistics(), libtorrent::web_peer_connection::url(), and libtorrent::resource_request::used.
Referenced by libtorrent::aux::session_impl::second_tick().
| void libtorrent::torrent::print | ( | std::ostream & | os | ) | const |
| std::string libtorrent::torrent::name | ( | ) | const |
Definition at line 402 of file torrent.cpp.
References m_name, m_torrent_file, libtorrent::torrent_info::name(), and valid_metadata().
Referenced by libtorrent::torrent_handle::name().
| bool libtorrent::torrent::check_fastresume | ( | aux::piece_checker_data & | data | ) |
Definition at line 2033 of file torrent.cpp.
References bytes_done(), libtorrent::alert::fatal, get_handle(), init(), INVARIANT_CHECK, libtorrent::aux::session_impl::m_alerts, m_compact_mode, m_have_pieces, m_initial_done, m_num_pieces, m_ses, m_storage, pause(), libtorrent::alert_manager::post_alert(), and libtorrent::alert_manager::should_post().
| std::pair< bool, float > libtorrent::torrent::check_files | ( | ) |
Definition at line 2072 of file torrent.cpp.
References bytes_done(), libtorrent::alert::fatal, get_handle(), INVARIANT_CHECK, libtorrent::aux::session_impl::m_alerts, m_have_pieces, m_initial_done, libtorrent::aux::session_impl::m_mutex, m_num_pieces, m_ses, m_storage, pause(), libtorrent::alert_manager::post_alert(), and libtorrent::alert_manager::should_post().
| void libtorrent::torrent::files_checked | ( | std::vector< piece_picker::downloading_piece > const & | unfinished_pieces | ) |
Definition at line 2106 of file torrent.cpp.
References bytes_done(), libtorrent::aux::session_impl::connection_failed(), end(), INVARIANT_CHECK, is_seed(), asio::placeholders::iterator, l, m_connections, m_connections_initialized, m_have_pieces, m_initial_done, libtorrent::aux::session_impl::m_mutex, m_picker, and m_ses.
| stat libtorrent::torrent::statistics | ( | ) | const [inline] |
Definition at line 162 of file torrent.hpp.
| size_type libtorrent::torrent::bytes_left | ( | ) | const |
Definition at line 626 of file torrent.cpp.
References m_torrent_file, quantized_bytes_done(), libtorrent::torrent_info::total_size(), and valid_metadata().
Referenced by generate_tracker_request().
Definition at line 665 of file torrent.cpp.
References begin(), libtorrent::big_number::begin(), block_size(), libtorrent::peer_connection::downloading_piece_progress(), end(), libtorrent::big_number::end(), index, INVARIANT_CHECK, is_seed(), asio::placeholders::iterator, m_block_size, m_have_pieces, m_num_pieces, m_picker, m_torrent_file, libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_length(), libtorrent::torrent_info::piece_size(), libtorrent::torrent_info::total_size(), and valid_metadata().
Referenced by check_fastresume(), check_files(), files_checked(), and status().
| size_type libtorrent::torrent::quantized_bytes_done | ( | ) | const |
Definition at line 635 of file torrent.cpp.
References is_seed(), m_have_pieces, m_num_pieces, m_torrent_file, libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_length(), libtorrent::torrent_info::piece_size(), libtorrent::torrent_info::total_size(), and valid_metadata().
Referenced by bytes_left(), and check_invariant().
| void libtorrent::torrent::pause | ( | ) |
Definition at line 2296 of file torrent.cpp.
References disconnect_all(), end(), INVARIANT_CHECK, asio::placeholders::iterator, m_event, m_extensions, m_just_paused, m_paused, m_storage, and libtorrent::tracker_request::stopped.
Referenced by check_fastresume(), check_files(), and libtorrent::torrent_handle::pause().
| void libtorrent::torrent::resume | ( | ) |
Definition at line 2320 of file torrent.cpp.
References end(), force_tracker_request(), INVARIANT_CHECK, asio::placeholders::iterator, m_connections_quota, m_event, m_extensions, m_paused, m_time_scaler, m_uploads_quota, libtorrent::resource_request::max, libtorrent::resource_request::min, and libtorrent::tracker_request::started.
Referenced by libtorrent::torrent_handle::resume().
| bool libtorrent::torrent::is_paused | ( | ) | const [inline] |
Definition at line 169 of file torrent.hpp.
Referenced by libtorrent::torrent_handle::is_paused(), libtorrent::policy::peer_from_tracker(), libtorrent::policy::pulse(), and libtorrent::aux::session_impl::remove_torrent().
| void libtorrent::torrent::filter_piece | ( | int | index, | |
| bool | filter | |||
| ) |
Definition at line 984 of file torrent.cpp.
References INVARIANT_CHECK, is_seed(), m_picker, m_torrent_file, libtorrent::torrent_info::num_pieces(), and valid_metadata().
Referenced by libtorrent::torrent_handle::filter_piece().
| void libtorrent::torrent::filter_pieces | ( | std::vector< bool > const & | bitmask | ) |
Definition at line 1002 of file torrent.cpp.
References libtorrent::big_number::begin(), end(), index, INVARIANT_CHECK, is_seed(), m_picker, state(), and valid_metadata().
Referenced by filter_files(), and libtorrent::torrent_handle::filter_pieces().
| bool libtorrent::torrent::is_piece_filtered | ( | int | index | ) | const |
Definition at line 1034 of file torrent.cpp.
References is_seed(), m_picker, m_torrent_file, libtorrent::torrent_info::num_pieces(), and valid_metadata().
Referenced by libtorrent::torrent_handle::is_piece_filtered().
| void libtorrent::torrent::filtered_pieces | ( | std::vector< bool > & | bitmask | ) | const |
Definition at line 1047 of file torrent.cpp.
References INVARIANT_CHECK, is_seed(), m_picker, m_torrent_file, libtorrent::torrent_info::num_pieces(), and valid_metadata().
Referenced by libtorrent::torrent_handle::filtered_pieces(), and status().
| void libtorrent::torrent::filter_files | ( | std::vector< bool > const & | files | ) |
Definition at line 1064 of file torrent.cpp.
References libtorrent::torrent_info::file_at(), filter_pieces(), INVARIANT_CHECK, is_seed(), m_torrent_file, libtorrent::torrent_info::num_files(), libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_length(), libtorrent::file_entry::size, libtorrent::big_number::size, and valid_metadata().
Referenced by libtorrent::torrent_handle::filter_files().
| torrent_status libtorrent::torrent::status | ( | ) | const |
Definition at line 2502 of file torrent.cpp.
References libtorrent::torrent_status::announce_interval, asio::detail::socket_ops::bind(), block_size(), libtorrent::torrent_status::block_size, bytes_done(), libtorrent::torrent_status::connecting_to_tracker, libtorrent::torrent_status::current_tracker, libtorrent::torrent_status::distributed_copies, libtorrent::stat::download_payload_rate(), libtorrent::torrent_status::download_payload_rate, libtorrent::stat::download_rate(), libtorrent::torrent_status::download_rate, libtorrent::torrent_status::downloading, libtorrent::torrent_status::downloading_metadata, filtered_pieces(), libtorrent::torrent_status::finished, INVARIANT_CHECK, libtorrent::peer_connection::is_connecting(), is_seed(), m_complete, m_connections, m_duration, m_got_tracker_response, m_have_pieces, m_incomplete, m_last_working_tracker, m_num_pieces, m_paused, m_picker, m_stat, m_torrent_file, m_total_failed_bytes, m_total_redundant_bytes, m_trackers, next_announce(), libtorrent::torrent_status::next_announce, libtorrent::torrent_status::num_complete, libtorrent::torrent_status::num_incomplete, libtorrent::torrent_status::num_peers, libtorrent::torrent_status::num_pieces, libtorrent::torrent_info::num_pieces(), num_seeds(), libtorrent::torrent_status::num_seeds, libtorrent::torrent_status::paused, libtorrent::torrent_info::piece_length(), libtorrent::torrent_info::piece_size(), libtorrent::torrent_status::pieces, libtorrent::torrent_status::progress, libtorrent::torrent_status::seeding, libtorrent::torrent_status::state, libtorrent::torrent_status::total_done, libtorrent::torrent_status::total_download, libtorrent::torrent_status::total_failed_bytes, libtorrent::stat::total_payload_download(), libtorrent::torrent_status::total_payload_download, libtorrent::stat::total_payload_upload(), libtorrent::torrent_status::total_payload_upload, libtorrent::stat::total_protocol_download(), libtorrent::stat::total_protocol_upload(), libtorrent::torrent_status::total_redundant_bytes, libtorrent::torrent_info::total_size(), libtorrent::torrent_status::total_upload, libtorrent::torrent_status::total_wanted, libtorrent::torrent_status::total_wanted_done, libtorrent::stat::upload_payload_rate(), libtorrent::torrent_status::upload_payload_rate, libtorrent::stat::upload_rate(), libtorrent::torrent_status::upload_rate, and valid_metadata().
| void libtorrent::torrent::file_progress | ( | std::vector< float > & | fp | ) | const |
Definition at line 2468 of file torrent.cpp.
References libtorrent::torrent_info::file_at(), m_have_pieces, m_torrent_file, libtorrent::torrent_info::map_file(), libtorrent::torrent_info::num_files(), libtorrent::peer_request::piece, libtorrent::torrent_info::piece_size(), libtorrent::file_entry::size, libtorrent::peer_request::start, and valid_metadata().
| void libtorrent::torrent::use_interface | ( | const char * | net_interface | ) |
Definition at line 436 of file torrent.cpp.
References asio::ip::address::from_string(), INVARIANT_CHECK, and m_net_interface.
Referenced by libtorrent::torrent_handle::use_interface().
| tcp::endpoint const& libtorrent::torrent::get_interface | ( | ) | const [inline] |
Definition at line 182 of file torrent.hpp.
| void libtorrent::torrent::connect_to_url_seed | ( | std::string const & | url | ) |
Definition at line 1191 of file torrent.cpp.
References asio::ip::basic_resolver< InternetProtocol, ResolverService >::async_resolve(), asio::detail::socket_ops::bind(), INVARIANT_CHECK, m_host_resolver, m_resolving_web_seeds, m_ses, libtorrent::aux::session_impl::m_strand, on_name_lookup(), on_proxy_name_lookup(), libtorrent::parse_url_components(), libtorrent::session_settings::proxy_ip, libtorrent::session_settings::proxy_port, libtorrent::aux::session_impl::settings(), and asio::io_service::strand::wrap().
Referenced by second_tick().
| peer_connection & libtorrent::torrent::connect_to_peer | ( | tcp::endpoint const & | a | ) |
Definition at line 1691 of file torrent.cpp.
References libtorrent::ip_filter::access(), asio::ip::basic_endpoint< InternetProtocol >::address(), libtorrent::ip_filter::blocked, c, libtorrent::aux::session_impl::connection_failed(), end(), INVARIANT_CHECK, asio::placeholders::iterator, libtorrent::aux::session_impl::m_connection_queue, m_connections, m_extensions, libtorrent::aux::session_impl::m_io_service, libtorrent::aux::session_impl::m_ip_filter, m_policy, m_ses, libtorrent::aux::session_impl::process_connection_queue(), simple_client::s, and asio::ip::address::to_string().
Referenced by libtorrent::policy::connect_peer().
| void libtorrent::torrent::set_ratio | ( | float | ratio | ) | [inline] |
| float libtorrent::torrent::ratio | ( | ) | const [inline] |
Definition at line 190 of file torrent.hpp.
Referenced by libtorrent::policy::connection_closed(), libtorrent::policy::find_unchoke_candidate(), libtorrent::policy::interested(), libtorrent::policy::not_interested(), and libtorrent::policy::pulse().
| void libtorrent::torrent::resolve_countries | ( | bool | r | ) | [inline] |
Definition at line 193 of file torrent.hpp.
Referenced by libtorrent::torrent_handle::resolve_countries().
| bool libtorrent::torrent::resolving_countries | ( | ) | const [inline] |
Definition at line 196 of file torrent.hpp.
Referenced by libtorrent::torrent_handle::resolve_countries().
| void libtorrent::torrent::request_bandwidth | ( | int | channel, | |
| boost::intrusive_ptr< peer_connection > | p, | |||
| bool | non_prioritized | |||
| ) |
Definition at line 1881 of file torrent.cpp.
References libtorrent::bandwidth_limit::assign(), libtorrent::peer_connection::download_channel, m_bandwidth_limit, m_bandwidth_queue, libtorrent::aux::session_impl::m_dl_bandwidth_manager, m_ses, libtorrent::aux::session_impl::m_ul_bandwidth_manager, libtorrent::max_bandwidth_block_size, libtorrent::bandwidth_manager::request_bandwidth(), request_bandwidth_from_session(), and libtorrent::peer_connection::upload_channel.
| void libtorrent::torrent::expire_bandwidth | ( | int | channel, | |
| int | amount | |||
| ) |
Definition at line 1900 of file torrent.cpp.
References libtorrent::bandwidth_limit::assign(), libtorrent::peer_connection::download_channel, libtorrent::bandwidth_limit::expire(), l, m_bandwidth_limit, m_bandwidth_queue, libtorrent::aux::session_impl::m_dl_bandwidth_manager, libtorrent::aux::session_impl::m_mutex, m_ses, libtorrent::aux::session_impl::m_ul_bandwidth_manager, libtorrent::max_bandwidth_block_size, libtorrent::bw_queue_entry::non_prioritized, libtorrent::bw_queue_entry::peer, libtorrent::bandwidth_manager::request_bandwidth(), request_bandwidth_from_session(), and libtorrent::peer_connection::upload_channel.
Referenced by assign_bandwidth().
| void libtorrent::torrent::assign_bandwidth | ( | int | channel, | |
| int | amount | |||
| ) |
Definition at line 1921 of file torrent.cpp.
References expire_bandwidth(), l, libtorrent::aux::session_impl::m_mutex, m_ses, and libtorrent::max_bandwidth_block_size.
| int libtorrent::torrent::bandwidth_throttle | ( | int | channel | ) | const |
Definition at line 1876 of file torrent.cpp.
References m_bandwidth_limit, and libtorrent::bandwidth_limit::throttle().
| void libtorrent::torrent::add_url_seed | ( | std::string const & | url | ) | [inline] |
Definition at line 217 of file torrent.hpp.
Referenced by libtorrent::torrent_handle::add_url_seed().
| void libtorrent::torrent::remove_url_seed | ( | std::string const & | url | ) | [inline] |
Definition at line 220 of file torrent.hpp.
Referenced by libtorrent::policy::ban_peer(), on_name_lookup(), and on_proxy_name_lookup().
| void libtorrent::torrent::attach_peer | ( | peer_connection * | p | ) |
Definition at line 1779 of file torrent.cpp.
References libtorrent::peer_connection::add_extension(), end(), libtorrent::peer_connection::get_socket(), INVARIANT_CHECK, libtorrent::aux::session_impl::is_aborted(), libtorrent::peer_connection::is_local(), asio::placeholders::iterator, libtorrent::aux::session_impl::m_connections, m_connections, m_extensions, m_policy, m_ses, libtorrent::peer_connection::proxy(), and libtorrent::peer_connection::remote().
| void libtorrent::torrent::remove_peer | ( | peer_connection * | p | ) |
Definition at line 1148 of file torrent.cpp.
References libtorrent::peer_connection::associated_torrent(), libtorrent::peer_connection::get_bitfield(), INVARIANT_CHECK, m_connections, m_policy, peer_lost(), pieces(), ready_for_connections(), and libtorrent::peer_connection::remote().
| peer_connection* libtorrent::torrent::connection_for | ( | tcp::endpoint const & | a | ) | [inline] |
Definition at line 233 of file torrent.hpp.
Referenced by libtorrent::peer_connection::check_invariant(), set_peer_download_limit(), and set_peer_upload_limit().
| int libtorrent::torrent::num_peers | ( | ) | const [inline] |
Definition at line 241 of file torrent.hpp.
Referenced by libtorrent::policy::connect_one_peer(), libtorrent::policy::find_unchoke_candidate(), libtorrent::policy::new_connection(), libtorrent::policy::peer_from_tracker(), libtorrent::policy::pulse(), set_download_limit(), and set_upload_limit().
| int libtorrent::torrent::num_seeds | ( | ) | const |
Definition at line 2627 of file torrent.cpp.
References asio::detail::socket_ops::bind(), INVARIANT_CHECK, libtorrent::peer_connection::is_seed(), and m_connections.
Referenced by status().
| const_peer_iterator libtorrent::torrent::begin | ( | ) | const [inline] |
Definition at line 247 of file torrent.hpp.
Referenced by bytes_done(), libtorrent::policy::check_invariant(), libtorrent::piece_picker::check_invariant(), check_invariant(), libtorrent::policy::pulse(), and libtorrent::request_a_block().
| const_peer_iterator libtorrent::torrent::end | ( | ) | const [inline] |
Definition at line 248 of file torrent.hpp.
Referenced by announce_piece(), attach_peer(), bytes_done(), libtorrent::policy::check_invariant(), libtorrent::piece_picker::check_invariant(), check_invariant(), connect_to_peer(), files_checked(), filter_pieces(), pause(), piece_failed(), libtorrent::policy::pulse(), libtorrent::request_a_block(), resume(), and second_tick().
| peer_iterator libtorrent::torrent::begin | ( | ) | [inline] |
Definition at line 250 of file torrent.hpp.
| peer_iterator libtorrent::torrent::end | ( | ) | [inline] |
Definition at line 251 of file torrent.hpp.
| void libtorrent::torrent::resolve_peer_country | ( | boost::intrusive_ptr< peer_connection > const & | p | ) | const |
Definition at line 1377 of file torrent.cpp.
References asio::ip::basic_resolver< InternetProtocol, ResolverService >::async_resolve(), asio::detail::socket_ops::bind(), m_host_resolver, m_resolving_country, m_ses, libtorrent::aux::session_impl::m_strand, on_country_lookup(), and asio::io_service::strand::wrap().
| void libtorrent::torrent::tracker_response | ( | tracker_request const & | r, | |
| std::vector< peer_entry > & | e, | |||
| int | interval, | |||
| int | complete, | |||
| int | incomplete | |||
| ) | [virtual] |
Implements libtorrent::request_callback.
Definition at line 515 of file torrent.cpp.
References a, libtorrent::ip_filter::access(), asio::ip::basic_endpoint< InternetProtocol >::address(), asio::ip::basic_resolver< InternetProtocol, ResolverService >::async_resolve(), libtorrent::big_number::begin(), asio::detail::socket_ops::bind(), libtorrent::ip_filter::blocked, libtorrent::big_number::end(), asio::ip::address::from_string(), get_handle(), libtorrent::aux::session_impl::get_peer_id(), libtorrent::identify_client(), libtorrent::alert::info, INVARIANT_CHECK, libtorrent::big_number::is_all_zeros(), asio::placeholders::iterator, l, libtorrent::aux::session_impl::m_alerts, m_complete, m_currently_trying_tracker, m_duration, m_failed_trackers, m_got_tracker_response, m_host_resolver, m_incomplete, libtorrent::aux::session_impl::m_ip_filter, m_last_working_tracker, libtorrent::aux::session_impl::m_mutex, m_next_request, m_policy, m_ses, libtorrent::aux::session_impl::m_strand, m_trackers, on_peer_name_lookup(), libtorrent::alert_manager::post_alert(), prioritize_tracker(), simple_client::s, libtorrent::alert_manager::should_post(), and asio::io_service::strand::wrap().
| void libtorrent::torrent::tracker_request_timed_out | ( | tracker_request const & | r | ) | [virtual] |
Implements libtorrent::request_callback.
Definition at line 2637 of file torrent.cpp.
References get_handle(), INVARIANT_CHECK, l, libtorrent::aux::session_impl::m_alerts, m_currently_trying_tracker, m_failed_trackers, libtorrent::aux::session_impl::m_mutex, m_ses, m_trackers, libtorrent::alert_manager::post_alert(), simple_client::s, libtorrent::alert_manager::should_post(), try_next_tracker(), and libtorrent::alert::warning.
| void libtorrent::torrent::tracker_request_error | ( | tracker_request const & | r, | |
| int | response_code, | |||
| const std::string & | str | |||
| ) | [virtual] |
Implements libtorrent::request_callback.
Definition at line 2663 of file torrent.cpp.
References get_handle(), INVARIANT_CHECK, l, libtorrent::aux::session_impl::m_alerts, m_currently_trying_tracker, m_failed_trackers, libtorrent::aux::session_impl::m_mutex, m_ses, m_trackers, libtorrent::alert_manager::post_alert(), simple_client::s, libtorrent::alert_manager::should_post(), try_next_tracker(), and libtorrent::alert::warning.
| void libtorrent::torrent::tracker_warning | ( | std::string const & | msg | ) | [virtual] |
Implements libtorrent::request_callback.
Definition at line 503 of file torrent.cpp.
References get_handle(), INVARIANT_CHECK, l, libtorrent::aux::session_impl::m_alerts, libtorrent::aux::session_impl::m_mutex, m_ses, libtorrent::alert_manager::post_alert(), libtorrent::alert_manager::should_post(), and libtorrent::alert::warning.
| tracker_request libtorrent::torrent::generate_tracker_request | ( | ) |
Definition at line 1112 of file torrent.cpp.
References bytes_left(), libtorrent::tracker_request::downloaded, libtorrent::tracker_request::event, libtorrent::aux::session_impl::get_peer_id(), libtorrent::torrent_info::info_hash(), libtorrent::tracker_request::info_hash, INVARIANT_CHECK, libtorrent::tracker_request::key, libtorrent::tracker_request::left, libtorrent::tracker_request::listen_port, m_currently_trying_tracker, m_event, m_next_request, m_ses, m_stat, m_torrent_file, m_trackers, m_web_stat, libtorrent::tracker_request::none, libtorrent::tracker_request::num_want, libtorrent::tracker_request::pid, libtorrent::tracker_request::stopped, libtorrent::stat::total_payload_download(), libtorrent::stat::total_payload_upload(), tracker_retry_delay_max, libtorrent::tracker_request::uploaded, libtorrent::tracker_request::url, and libtorrent::tracker_request::web_downloaded.
Referenced by libtorrent::aux::session_impl::remove_torrent(), and libtorrent::aux::session_impl::second_tick().
| std::string libtorrent::torrent::tracker_login | ( | ) | const |
Definition at line 978 of file torrent.cpp.
References m_password, and m_username.
Referenced by libtorrent::aux::session_impl::remove_torrent(), and libtorrent::aux::session_impl::second_tick().
| boost::posix_time::ptime libtorrent::torrent::next_announce | ( | ) | const [inline] |
| bool libtorrent::torrent::should_request | ( | ) |
Definition at line 488 of file torrent.cpp.
References INVARIANT_CHECK, m_just_paused, m_next_request, m_paused, m_torrent_file, and libtorrent::torrent_info::trackers().
Referenced by libtorrent::aux::session_impl::remove_torrent(), and libtorrent::aux::session_impl::second_tick().
| void libtorrent::torrent::force_tracker_request | ( | ) | [inline] |
Definition at line 675 of file torrent.hpp.
References m_next_request.
Referenced by completed(), and resume().
| void libtorrent::torrent::force_tracker_request | ( | boost::posix_time::ptime | t | ) | [inline] |
| void libtorrent::torrent::set_tracker_login | ( | std::string const & | name, | |
| std::string const & | pw | |||
| ) | [inline] |
Definition at line 687 of file torrent.hpp.
References m_password, and m_username.
Referenced by libtorrent::torrent_handle::set_tracker_login().
| const tcp::endpoint & libtorrent::torrent::current_tracker | ( | ) | const |
Definition at line 2460 of file torrent.cpp.
References libtorrent::request_callback::m_tracker_address.
Referenced by libtorrent::policy::new_connection().
| bool libtorrent::torrent::have_piece | ( | int | index | ) | const [inline] |
Definition at line 307 of file torrent.hpp.
Referenced by libtorrent::piece_picker::check_invariant().
| const std::vector<bool>& libtorrent::torrent::pieces | ( | ) | const [inline] |
Definition at line 313 of file torrent.hpp.
Referenced by libtorrent::policy::piece_finished(), and remove_peer().
| int libtorrent::torrent::num_pieces | ( | ) | const [inline] |
Definition at line 316 of file torrent.hpp.
| void libtorrent::torrent::peer_has | ( | int | index | ) | [inline] |
Definition at line 320 of file torrent.hpp.
| void libtorrent::torrent::peer_lost | ( | int | index | ) | [inline] |
| int libtorrent::torrent::block_size | ( | ) | const [inline] |
| void libtorrent::torrent::announce_piece | ( | int | index | ) |
Definition at line 935 of file torrent.cpp.
References libtorrent::big_number::begin(), end(), is_seed(), asio::placeholders::iterator, m_connections, m_extensions, m_have_pieces, m_num_pieces, m_picker, m_torrent_file, and libtorrent::torrent_info::num_pieces().
| void libtorrent::torrent::disconnect_all | ( | ) |
Definition at line 1843 of file torrent.cpp.
References libtorrent::peer_connection::associated_torrent(), libtorrent::peer_connection::disconnect(), INVARIANT_CHECK, l, m_abort, m_connections, libtorrent::aux::session_impl::m_mutex, and m_ses.
Referenced by abort(), pause(), and ~torrent().
| void libtorrent::torrent::completed | ( | ) |
Definition at line 1965 of file torrent.cpp.
References libtorrent::tracker_request::completed, force_tracker_request(), INVARIANT_CHECK, and m_event.
| void libtorrent::torrent::on_peer_name_lookup | ( | asio::error_code const & | e, | |
| tcp::resolver::iterator | i, | |||
| peer_id | pid | |||
| ) |
Definition at line 603 of file torrent.cpp.
References libtorrent::ip_filter::access(), libtorrent::ip_filter::blocked, INVARIANT_CHECK, libtorrent::aux::session_impl::is_aborted(), l, libtorrent::aux::session_impl::m_ip_filter, libtorrent::aux::session_impl::m_mutex, m_policy, and m_ses.
Referenced by tracker_response().
| void libtorrent::torrent::on_name_lookup | ( | asio::error_code const & | e, | |
| tcp::resolver::iterator | i, | |||
| std::string | url, | |||
| tcp::endpoint | proxy | |||
| ) |
Definition at line 1280 of file torrent.cpp.
References a, libtorrent::ip_filter::access(), libtorrent::ip_filter::blocked, c, libtorrent::aux::session_impl::connection_failed(), get_handle(), INVARIANT_CHECK, libtorrent::aux::session_impl::is_aborted(), asio::placeholders::iterator, l, libtorrent::aux::session_impl::m_alerts, libtorrent::aux::session_impl::m_connection_queue, m_connections, libtorrent::aux::session_impl::m_io_service, libtorrent::aux::session_impl::m_ip_filter, libtorrent::aux::session_impl::m_mutex, m_policy, m_resolving_web_seeds, m_ses, asio::error_code::message(), libtorrent::alert_manager::post_alert(), libtorrent::aux::session_impl::process_connection_queue(), remove_url_seed(), simple_client::s, libtorrent::alert_manager::should_post(), and libtorrent::alert::warning.
Referenced by connect_to_url_seed(), and on_proxy_name_lookup().
| void libtorrent::torrent::on_proxy_name_lookup | ( | asio::error_code const & | e, | |
| tcp::resolver::iterator | i, | |||
| std::string | url | |||
| ) |
Definition at line 1226 of file torrent.cpp.
References a, libtorrent::ip_filter::access(), asio::ip::basic_resolver< InternetProtocol, ResolverService >::async_resolve(), asio::detail::socket_ops::bind(), libtorrent::ip_filter::blocked, get_handle(), INVARIANT_CHECK, libtorrent::aux::session_impl::is_aborted(), l, libtorrent::aux::session_impl::m_alerts, m_host_resolver, libtorrent::aux::session_impl::m_ip_filter, libtorrent::aux::session_impl::m_mutex, m_ses, libtorrent::aux::session_impl::m_strand, asio::error_code::message(), on_name_lookup(), libtorrent::parse_url_components(), libtorrent::alert_manager::post_alert(), remove_url_seed(), libtorrent::alert_manager::should_post(), libtorrent::alert::warning, and asio::io_service::strand::wrap().
Referenced by connect_to_url_seed().
| void libtorrent::torrent::finished | ( | ) |
Definition at line 1931 of file torrent.cpp.
References alerts(), asio::detail::socket_ops::bind(), libtorrent::peer_connection::disconnect(), get_handle(), libtorrent::alert::info, INVARIANT_CHECK, m_connections, m_storage, and libtorrent::alert_manager::post_alert().
| bool libtorrent::torrent::verify_piece | ( | int | piece_index | ) |
Definition at line 2437 of file torrent.cpp.
References asio::buffer(), libtorrent::hasher::final(), simple_client::h, libtorrent::torrent_info::hash_for_piece(), m_have_pieces, m_storage, m_torrent_file, libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_size(), and libtorrent::hasher::update().
| void libtorrent::torrent::piece_failed | ( | int | index | ) |
Definition at line 836 of file torrent.cpp.
References libtorrent::big_number::begin(), end(), get_handle(), libtorrent::alert::info, asio::placeholders::iterator, libtorrent::aux::session_impl::m_alerts, m_connections, m_extensions, m_have_pieces, m_picker, m_policy, m_ses, m_storage, m_torrent_file, m_total_failed_bytes, libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_size(), libtorrent::alert_manager::post_alert(), simple_client::s, and libtorrent::alert_manager::should_post().
| void libtorrent::torrent::received_redundant_data | ( | int | num_bytes | ) | [inline] |
Definition at line 394 of file torrent.hpp.
| bool libtorrent::torrent::is_seed | ( | ) | const [inline] |
Definition at line 397 of file torrent.hpp.
Referenced by announce_piece(), libtorrent::policy::block_finished(), bytes_done(), check_invariant(), libtorrent::policy::connection_closed(), files_checked(), filter_files(), filter_piece(), filter_pieces(), filtered_pieces(), libtorrent::policy::interested(), is_piece_filtered(), libtorrent::torrent_handle::is_seed(), libtorrent::policy::not_interested(), libtorrent::policy::pulse(), quantized_bytes_done(), libtorrent::request_a_block(), second_tick(), set_sequenced_download_threshold(), and status().
| boost::filesystem::path libtorrent::torrent::save_path | ( | ) | const |
Definition at line 2157 of file torrent.cpp.
References m_save_path.
Referenced by libtorrent::torrent_handle::save_path().
| alert_manager & libtorrent::torrent::alerts | ( | ) | const |
Definition at line 2152 of file torrent.cpp.
References libtorrent::aux::session_impl::m_alerts, and m_ses.
Referenced by finished(), and libtorrent::policy::peer_from_tracker().
| piece_picker& libtorrent::torrent::picker | ( | ) | [inline] |
Definition at line 405 of file torrent.hpp.
Referenced by libtorrent::request_a_block(), and set_sequenced_download_threshold().
| policy& libtorrent::torrent::get_policy | ( | ) | [inline] |
Definition at line 410 of file torrent.hpp.
| piece_manager & libtorrent::torrent::filesystem | ( | ) |
| torrent_info const& libtorrent::torrent::torrent_file | ( | ) | const [inline] |
Definition at line 416 of file torrent.hpp.
Referenced by libtorrent::piece_picker::check_invariant(), libtorrent::create_ut_pex_plugin(), libtorrent::torrent_handle::get_torrent_info(), libtorrent::aux::session_impl::remove_torrent(), and libtorrent::request_a_block().
| std::vector<announce_entry> const& libtorrent::torrent::trackers | ( | ) | const [inline] |
| void libtorrent::torrent::replace_trackers | ( | std::vector< announce_entry > const & | urls | ) |
Definition at line 1103 of file torrent.cpp.
References m_currently_trying_tracker, m_last_working_tracker, and m_trackers.
Referenced by libtorrent::torrent_handle::replace_trackers().
| torrent_handle libtorrent::torrent::get_handle | ( | ) | const |
Definition at line 2187 of file torrent.cpp.
References libtorrent::torrent_info::info_hash(), INVARIANT_CHECK, m_checker, m_ses, and m_torrent_file.
Referenced by check_fastresume(), check_files(), finished(), on_dht_announce_response(), on_name_lookup(), on_proxy_name_lookup(), piece_failed(), libtorrent::aux::session_impl::remove_torrent(), libtorrent::aux::session_impl::second_tick(), set_metadata(), tracker_request_error(), tracker_request_timed_out(), tracker_response(), and tracker_warning().
| void libtorrent::torrent::check_invariant | ( | ) | const |
Definition at line 2201 of file torrent.cpp.
References libtorrent::peer_connection::associated_torrent(), begin(), count, end(), is_seed(), libtorrent::torrent_info::is_valid(), m_block_size, m_have_pieces, m_num_pieces, m_torrent_file, libtorrent::torrent_info::num_pieces(), libtorrent::torrent_info::piece_length(), quantized_bytes_done(), libtorrent::torrent_info::total_size(), and valid_metadata().
| void libtorrent::torrent::distribute_resources | ( | float | tick_interval | ) |
Definition at line 2425 of file torrent.cpp.
References INVARIANT_CHECK, m_policy, and m_time_scaler.
| void libtorrent::torrent::set_peer_upload_limit | ( | tcp::endpoint | ip, | |
| int | limit | |||
| ) |
Definition at line 2264 of file torrent.cpp.
References connection_for(), and libtorrent::peer_connection::set_upload_limit().
Referenced by libtorrent::torrent_handle::set_peer_upload_limit().
| void libtorrent::torrent::set_peer_download_limit | ( | tcp::endpoint | ip, | |
| int | limit | |||
| ) |
Definition at line 2272 of file torrent.cpp.
References connection_for(), and libtorrent::peer_connection::set_download_limit().
Referenced by libtorrent::torrent_handle::set_peer_download_limit().
| void libtorrent::torrent::set_upload_limit | ( | int | limit | ) |
Definition at line 2280 of file torrent.cpp.
References m_bandwidth_limit, num_peers(), libtorrent::bandwidth_limit::throttle(), and libtorrent::peer_connection::upload_channel.
Referenced by libtorrent::torrent_handle::set_upload_limit().
| void libtorrent::torrent::set_download_limit | ( | int | limit | ) |
Definition at line 2288 of file torrent.cpp.
References libtorrent::peer_connection::download_channel, m_bandwidth_limit, num_peers(), and libtorrent::bandwidth_limit::throttle().
Referenced by libtorrent::torrent_handle::set_download_limit().
| void libtorrent::torrent::set_max_uploads | ( | int | limit | ) |
Definition at line 2250 of file torrent.cpp.
References m_uploads_quota, libtorrent::resource_request::max, and libtorrent::resource_request::min.
Referenced by libtorrent::torrent_handle::set_max_uploads().
| void libtorrent::torrent::set_max_connections | ( | int | limit | ) |
Definition at line 2257 of file torrent.cpp.
References m_connections_quota, libtorrent::resource_request::max, and libtorrent::resource_request::min.
Referenced by libtorrent::torrent_handle::set_max_connections().
| bool libtorrent::torrent::move_storage | ( | boost::filesystem::path const & | save_path | ) |
Definition at line 2162 of file torrent.cpp.
References INVARIANT_CHECK, m_save_path, and m_storage.
Referenced by libtorrent::torrent_handle::move_storage().
| bool libtorrent::torrent::ready_for_connections | ( | ) | const [inline] |
| bool libtorrent::torrent::valid_metadata | ( | ) | const [inline] |
Definition at line 457 of file torrent.hpp.
Referenced by bytes_done(), bytes_left(), check_invariant(), file_progress(), filter_files(), filter_piece(), filter_pieces(), filtered_pieces(), libtorrent::torrent_handle::has_metadata(), is_piece_filtered(), name(), quantized_bytes_done(), set_sequenced_download_threshold(), and status().
| void libtorrent::torrent::set_metadata | ( | entry const & | metadata | ) |
Definition at line 1750 of file torrent.cpp.
References get_handle(), libtorrent::alert::info, libtorrent::torrent_info::info_hash(), asio::placeholders::iterator, libtorrent::aux::session_impl::m_alerts, m_checker, libtorrent::aux::checker_impl::m_cond, libtorrent::aux::checker_impl::m_mutex, m_save_path, m_ses, m_torrent_file, libtorrent::aux::session_impl::m_torrents, libtorrent::aux::checker_impl::m_torrents, libtorrent::torrent_info::parse_info_section(), libtorrent::alert_manager::post_alert(), and libtorrent::alert_manager::should_post().
| void libtorrent::torrent::try_next_tracker | ( | ) | [private] |
Definition at line 1993 of file torrent.cpp.
References asio::detail::socket_ops::bind(), INVARIANT_CHECK, m_currently_trying_tracker, m_dht_announce_timer, m_failed_trackers, m_next_request, m_ses, libtorrent::aux::session_impl::m_strand, m_trackers, on_dht_announce(), should_announce_dht(), tracker_failed_max, tracker_retry_delay_max, tracker_retry_delay_min, and asio::io_service::strand::wrap().
Referenced by tracker_request_error(), and tracker_request_timed_out().
| int libtorrent::torrent::prioritize_tracker | ( | int | tracker_index | ) | [private] |
Definition at line 1978 of file torrent.cpp.
References INVARIANT_CHECK, and m_trackers.
Referenced by tracker_response().
| void libtorrent::torrent::on_country_lookup | ( | asio::error_code const & | error, | |
| tcp::resolver::iterator | i, | |||
| boost::intrusive_ptr< peer_connection > | p | |||
| ) | const [private] |
Referenced by resolve_peer_country().
| bool libtorrent::torrent::request_bandwidth_from_session | ( | int | channel | ) | const [private] |
Definition at line 1868 of file torrent.cpp.
References m_bandwidth_limit, libtorrent::bandwidth_limit::max_assignable(), libtorrent::max_bandwidth_block_size, and libtorrent::bandwidth_limit::throttle().
Referenced by expire_bandwidth(), and request_bandwidth().
| void libtorrent::torrent::parse_response | ( | const entry & | e, | |
| std::vector< peer_entry > & | peer_list | |||
| ) | [private] |
| static void libtorrent::torrent::on_dht_announce_response_disp | ( | boost::weak_ptr< torrent > | t, | |
| std::vector< tcp::endpoint > const & | peers | |||
| ) | [static, private] |
Referenced by on_dht_announce().
| void libtorrent::torrent::on_dht_announce | ( | asio::error_code const & | e | ) | [private] |
Definition at line 453 of file torrent.cpp.
References asio::detail::socket_ops::bind(), libtorrent::torrent_info::info_hash(), libtorrent::aux::session_impl::m_dht, m_dht_announce_timer, libtorrent::aux::session_impl::m_listen_interface, m_ses, libtorrent::aux::session_impl::m_strand, m_torrent_file, on_dht_announce_response_disp(), asio::ip::basic_endpoint< InternetProtocol >::port(), should_announce_dht(), and asio::io_service::strand::wrap().
Referenced by torrent(), and try_next_tracker().
| void libtorrent::torrent::on_dht_announce_response | ( | std::vector< tcp::endpoint > const & | peers | ) | [private] |
Definition at line 471 of file torrent.cpp.
References asio::detail::socket_ops::bind(), get_handle(), libtorrent::alert::info, libtorrent::aux::session_impl::m_alerts, m_policy, m_ses, libtorrent::policy::peer_from_tracker(), libtorrent::alert_manager::post_alert(), and libtorrent::alert_manager::should_post().
| bool libtorrent::torrent::should_announce_dht | ( | ) | const [private] |
Definition at line 370 of file torrent.cpp.
References libtorrent::torrent_info::is_valid(), m_failed_trackers, m_ses, m_torrent_file, m_trackers, libtorrent::torrent_info::priv(), libtorrent::aux::session_impl::settings(), and libtorrent::session_settings::use_dht_as_fallback.
Referenced by on_dht_announce(), torrent(), and try_next_tracker().
Definition at line 201 of file torrent.hpp.
Referenced by bandwidth_throttle(), expire_bandwidth(), request_bandwidth(), request_bandwidth_from_session(), set_download_limit(), and set_upload_limit().
Definition at line 441 of file torrent.hpp.
Referenced by libtorrent::policy::interested(), libtorrent::policy::pulse(), resume(), libtorrent::aux::session_impl::second_tick(), second_tick(), set_max_uploads(), and torrent().
Definition at line 442 of file torrent.hpp.
Referenced by libtorrent::policy::connect_one_peer(), libtorrent::policy::new_connection(), libtorrent::policy::peer_from_tracker(), libtorrent::policy::pulse(), resume(), libtorrent::aux::session_impl::second_tick(), second_tick(), set_max_connections(), and torrent().
Definition at line 474 of file torrent.hpp.
Referenced by announce_piece(), bytes_done(), bytes_left(), check_invariant(), file_progress(), filter_files(), filter_piece(), filtered_pieces(), generate_tracker_request(), get_handle(), init(), is_piece_filtered(), name(), on_dht_announce(), piece_failed(), quantized_bytes_done(), set_metadata(), should_announce_dht(), should_request(), status(), torrent(), and verify_piece().
bool libtorrent::torrent::m_abort [private] |
Definition at line 478 of file torrent.hpp.
Referenced by abort(), disconnect_all(), and ~torrent().
bool libtorrent::torrent::m_paused [private] |
Definition at line 481 of file torrent.hpp.
Referenced by abort(), pause(), resume(), second_tick(), should_request(), and status().
bool libtorrent::torrent::m_just_paused [private] |
Definition at line 486 of file torrent.hpp.
Referenced by abort(), completed(), generate_tracker_request(), pause(), and resume().
int libtorrent::torrent::m_block_size [private] |
Definition at line 493 of file torrent.hpp.
Referenced by bytes_done(), check_invariant(), and init().
boost::scoped_ptr<piece_manager> libtorrent::torrent::m_storage [private] |
Definition at line 498 of file torrent.hpp.
Referenced by abort(), check_fastresume(), check_files(), filesystem(), finished(), init(), is_allocating(), move_storage(), pause(), piece_failed(), and verify_piece().
boost::posix_time::ptime libtorrent::torrent::m_next_request [private] |
Definition at line 501 of file torrent.hpp.
Referenced by force_tracker_request(), generate_tracker_request(), next_announce(), should_request(), tracker_response(), and try_next_tracker().
int libtorrent::torrent::m_duration [private] |
int libtorrent::torrent::m_complete [private] |
int libtorrent::torrent::m_incomplete [private] |
Definition at line 518 of file torrent.hpp.
Referenced by announce_piece(), attach_peer(), connect_to_peer(), disconnect_all(), files_checked(), finished(), num_seeds(), on_name_lookup(), piece_failed(), remove_peer(), second_tick(), status(), and ~torrent().
std::set<std::string> libtorrent::torrent::m_web_seeds [private] |
std::set<std::string> libtorrent::torrent::m_resolving_web_seeds [private] |
Definition at line 529 of file torrent.hpp.
Referenced by connect_to_url_seed(), on_name_lookup(), and second_tick().
tcp::resolver libtorrent::torrent::m_host_resolver [mutable, private] |
Definition at line 532 of file torrent.hpp.
Referenced by connect_to_url_seed(), on_proxy_name_lookup(), resolve_peer_country(), and tracker_response().
bool libtorrent::torrent::m_resolving_country [mutable, private] |
bool libtorrent::torrent::m_resolve_countries [private] |
Definition at line 542 of file torrent.hpp.
deadline_timer libtorrent::torrent::m_dht_announce_timer [private] |
Definition at line 547 of file torrent.hpp.
Referenced by on_dht_announce(), torrent(), and try_next_tracker().
libtorrent::stat libtorrent::torrent::m_stat [private] |
Definition at line 555 of file torrent.hpp.
Referenced by generate_tracker_request(), second_tick(), and status().
Definition at line 559 of file torrent.hpp.
Referenced by generate_tracker_request(), and second_tick().
boost::shared_ptr<policy> libtorrent::torrent::m_policy [private] |
Definition at line 563 of file torrent.hpp.
Referenced by attach_peer(), connect_to_peer(), distribute_resources(), on_dht_announce_response(), on_name_lookup(), on_peer_name_lookup(), piece_failed(), remove_peer(), second_tick(), torrent(), and tracker_response().
aux::session_impl& libtorrent::torrent::m_ses [private] |
Definition at line 567 of file torrent.hpp.
Referenced by alerts(), assign_bandwidth(), attach_peer(), check_fastresume(), check_files(), connect_to_peer(), connect_to_url_seed(), disconnect_all(), expire_bandwidth(), files_checked(), generate_tracker_request(), get_handle(), init(), on_dht_announce(), on_dht_announce_response(), on_name_lookup(), on_peer_name_lookup(), on_proxy_name_lookup(), piece_failed(), request_bandwidth(), resolve_peer_country(), set_metadata(), settings(), should_announce_dht(), torrent(), tracker_request_error(), tracker_request_timed_out(), tracker_response(), tracker_warning(), try_next_tracker(), and ~torrent().
aux::checker_impl& libtorrent::torrent::m_checker [private] |
boost::scoped_ptr<piece_picker> libtorrent::torrent::m_picker [private] |
Definition at line 570 of file torrent.hpp.
Referenced by announce_piece(), bytes_done(), files_checked(), filter_piece(), filter_pieces(), filtered_pieces(), init(), is_piece_filtered(), piece_failed(), and status().
std::deque<bw_queue_entry> libtorrent::torrent::m_bandwidth_queue[2] [private] |
Definition at line 573 of file torrent.hpp.
Referenced by expire_bandwidth(), and request_bandwidth().
std::vector<announce_entry> libtorrent::torrent::m_trackers [private] |
Definition at line 575 of file torrent.hpp.
Referenced by generate_tracker_request(), prioritize_tracker(), replace_trackers(), should_announce_dht(), status(), torrent(), tracker_request_error(), tracker_request_timed_out(), tracker_response(), and try_next_tracker().
int libtorrent::torrent::m_last_working_tracker [private] |
Definition at line 577 of file torrent.hpp.
Referenced by replace_trackers(), status(), and tracker_response().
int libtorrent::torrent::m_currently_trying_tracker [private] |
Definition at line 578 of file torrent.hpp.
Referenced by generate_tracker_request(), replace_trackers(), tracker_request_error(), tracker_request_timed_out(), tracker_response(), and try_next_tracker().
int libtorrent::torrent::m_failed_trackers [private] |
Definition at line 582 of file torrent.hpp.
Referenced by should_announce_dht(), tracker_request_error(), tracker_request_timed_out(), tracker_response(), and try_next_tracker().
int libtorrent::torrent::m_time_scaler [private] |
std::vector<bool> libtorrent::torrent::m_have_pieces [private] |
Definition at line 590 of file torrent.hpp.
Referenced by announce_piece(), bytes_done(), check_fastresume(), check_files(), check_invariant(), file_progress(), files_checked(), init(), piece_failed(), quantized_bytes_done(), status(), and verify_piece().
int libtorrent::torrent::m_num_pieces [private] |
Definition at line 595 of file torrent.hpp.
Referenced by announce_piece(), bytes_done(), check_fastresume(), check_files(), check_invariant(), quantized_bytes_done(), and status().
float libtorrent::torrent::m_ratio [private] |
Definition at line 605 of file torrent.hpp.
std::string libtorrent::torrent::m_username [private] |
std::string libtorrent::torrent::m_password [private] |
boost::filesystem::path libtorrent::torrent::m_save_path [private] |
Definition at line 619 of file torrent.hpp.
Referenced by init(), move_storage(), save_path(), and set_metadata().
const bool libtorrent::torrent::m_compact_mode [private] |
const int libtorrent::torrent::m_default_block_size [private] |
boost::scoped_ptr<std::string> libtorrent::torrent::m_name [private] |
session_settings const& libtorrent::torrent::m_settings [private] |
Definition at line 645 of file torrent.hpp.
Definition at line 649 of file torrent.hpp.
Referenced by add_extension(), announce_piece(), attach_peer(), connect_to_peer(), pause(), piece_failed(), resume(), and second_tick().
size_type libtorrent::torrent::m_initial_done [private] |
Definition at line 656 of file torrent.hpp.
Referenced by check_fastresume(), check_files(), files_checked(), and torrent().
1.5.6