#include <session.hpp>

Public Member Functions | |
| session (fingerprint const &print=fingerprint("LT", LIBTORRENT_VERSION_MAJOR, LIBTORRENT_VERSION_MINOR, 0, 0)) | |
| session (fingerprint const &print, std::pair< int, int > listen_port_range, char const *listen_interface="0.0.0.0") | |
| ~session () | |
| std::vector< torrent_handle > | get_torrents () const |
| torrent_handle | find_torrent (sha1_hash const &info_hash) const |
| torrent_handle | add_torrent (torrent_info const &ti, boost::filesystem::path const &save_path, entry const &resume_data=entry(), bool compact_mode=true, int block_size=16 *1024) |
| torrent_handle | add_torrent (entry const &e, boost::filesystem::path const &save_path, entry const &resume_data=entry(), bool compact_mode=true, int block_size=16 *1024) |
| torrent_handle | add_torrent (char const *tracker_url, sha1_hash const &info_hash, char const *name, boost::filesystem::path const &save_path, entry const &resume_data=entry(), bool compact_mode=true, int block_size=16 *1024) |
| session_proxy | abort () |
| session_status | status () const |
| void | start_dht (entry const &startup_state=entry()) |
| void | stop_dht () |
| void | set_dht_settings (dht_settings const &settings) |
| entry | dht_state () const |
| void | add_dht_node (std::pair< std::string, int > const &node) |
| void | add_dht_router (std::pair< std::string, int > const &node) |
| void | add_extension (boost::function< boost::shared_ptr< torrent_plugin >(torrent *)> ext) |
| void | set_ip_filter (ip_filter const &f) |
| void | set_peer_id (peer_id const &pid) |
| void | set_key (int key) |
| bool | is_listening () const |
| bool | listen_on (std::pair< int, int > const &port_range, const char *net_interface=0) |
| unsigned short | listen_port () const |
| int | num_uploads () const |
| int | num_connections () const |
| void | remove_torrent (const torrent_handle &h) |
| void | set_settings (session_settings const &s) |
| session_settings const & | settings () |
| int | upload_rate_limit () const |
| int | download_rate_limit () const |
| void | set_upload_rate_limit (int bytes_per_second) |
| void | set_download_rate_limit (int bytes_per_second) |
| void | set_max_uploads (int limit) |
| void | set_max_connections (int limit) |
| void | set_max_half_open_connections (int limit) |
| std::auto_ptr< alert > | pop_alert () |
| void | set_severity_level (alert::severity_t s) |
Public Attributes | |
| resource_request | m_ul_bandwidth_quota |
| resource_request | m_dl_bandwidth_quota |
| resource_request | m_uploads_quota |
| resource_request | m_connections_quota |
Private Attributes | |
| aux::filesystem_init | m_dummy |
| boost::shared_ptr < aux::session_impl > | m_impl |
Definition at line 115 of file session.hpp.
| libtorrent::session::session | ( | fingerprint const & | print = fingerprint("LT" , LIBTORRENT_VERSION_MAJOR, LIBTORRENT_VERSION_MINOR, 0, 0) |
) |
| libtorrent::session::session | ( | fingerprint const & | print, | |
| std::pair< int, int > | listen_port_range, | |||
| char const * | listen_interface = "0.0.0.0" | |||
| ) |
| libtorrent::session::~session | ( | ) |
| std::vector< torrent_handle > libtorrent::session::get_torrents | ( | ) | const |
| torrent_handle libtorrent::session::find_torrent | ( | sha1_hash const & | info_hash | ) | const |
| torrent_handle libtorrent::session::add_torrent | ( | torrent_info const & | ti, | |
| boost::filesystem::path const & | save_path, | |||
| entry const & | resume_data = entry(), |
|||
| bool | compact_mode = true, |
|||
| int | block_size = 16 * 1024 | |||
| ) |
Definition at line 139 of file session.cpp.
References m_impl.
Referenced by add_torrent(), vmsBtSessionImpl::CreateDownload(), vmsBtSessionImpl::RestoreDownloadHandle(), and setup_transfer().
| torrent_handle libtorrent::session::add_torrent | ( | entry const & | e, | |
| boost::filesystem::path const & | save_path, | |||
| entry const & | resume_data = entry(), |
|||
| bool | compact_mode = true, |
|||
| int | block_size = 16 * 1024 | |||
| ) | [inline] |
| torrent_handle libtorrent::session::add_torrent | ( | char const * | tracker_url, | |
| sha1_hash const & | info_hash, | |||
| char const * | name, | |||
| boost::filesystem::path const & | save_path, | |||
| entry const & | resume_data = entry(), |
|||
| bool | compact_mode = true, |
|||
| int | block_size = 16 * 1024 | |||
| ) |
| session_proxy libtorrent::session::abort | ( | ) | [inline] |
Definition at line 163 of file session.hpp.
| session_status libtorrent::session::status | ( | ) | const |
Definition at line 180 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::get_TotalDownloadedByteCount(), vmsBtSessionImpl::get_TotalDownloadSpeed(), vmsBtSessionImpl::get_TotalUploadedByteCount(), and vmsBtSessionImpl::get_TotalUploadSpeed().
Definition at line 187 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::DHT_start().
| void libtorrent::session::stop_dht | ( | ) |
Definition at line 192 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::DHT_stop().
| void libtorrent::session::set_dht_settings | ( | dht_settings const & | settings | ) |
| entry libtorrent::session::dht_state | ( | ) | const |
Definition at line 202 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::DHT_getState().
| void libtorrent::session::add_dht_node | ( | std::pair< std::string, int > const & | node | ) |
| void libtorrent::session::add_dht_router | ( | std::pair< std::string, int > const & | node | ) |
| void libtorrent::session::add_extension | ( | boost::function< boost::shared_ptr< torrent_plugin >(torrent *)> | ext | ) |
Definition at line 108 of file session.cpp.
References m_impl.
Referenced by add_extension(), and vmsBtSessionImpl::vmsBtSessionImpl().
| void libtorrent::session::set_ip_filter | ( | ip_filter const & | f | ) |
| void libtorrent::session::set_peer_id | ( | peer_id const & | pid | ) |
| void libtorrent::session::set_key | ( | int | key | ) |
| bool libtorrent::session::is_listening | ( | ) | const |
Definition at line 219 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::IsListening().
| bool libtorrent::session::listen_on | ( | std::pair< int, int > const & | port_range, | |
| const char * | net_interface = 0 | |||
| ) |
Definition at line 168 of file session.cpp.
References m_impl.
Referenced by listen_on(), and vmsBtSessionImpl::ListenOn().
| unsigned short libtorrent::session::listen_port | ( | ) | const |
Definition at line 175 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::get_ListenPort(), and setup_transfer().
| int libtorrent::session::num_uploads | ( | ) | const |
| int libtorrent::session::num_connections | ( | ) | const |
| void libtorrent::session::remove_torrent | ( | const torrent_handle & | h | ) |
Definition at line 163 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::DeleteDownload(), and scan_dir().
| void libtorrent::session::set_settings | ( | session_settings const & | s | ) |
Definition at line 224 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::SetProxySettings(), and vmsBtSessionImpl::SetUserAgent().
| session_settings const & libtorrent::session::settings | ( | ) |
Definition at line 229 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::SetProxySettings(), and vmsBtSessionImpl::SetUserAgent().
| int libtorrent::session::upload_rate_limit | ( | ) | const |
| int libtorrent::session::download_rate_limit | ( | ) | const |
| void libtorrent::session::set_upload_rate_limit | ( | int | bytes_per_second | ) |
Definition at line 259 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::SetUploadLimit().
| void libtorrent::session::set_download_rate_limit | ( | int | bytes_per_second | ) |
Definition at line 264 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::SetDownloadLimit().
| void libtorrent::session::set_max_uploads | ( | int | limit | ) |
Definition at line 234 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::SetMaxUploads().
| void libtorrent::session::set_max_connections | ( | int | limit | ) |
| void libtorrent::session::set_max_half_open_connections | ( | int | limit | ) |
Definition at line 244 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::vmsBtSessionImpl().
| std::auto_ptr< alert > libtorrent::session::pop_alert | ( | ) |
Definition at line 279 of file session.cpp.
References m_impl.
Referenced by vmsBtSessionImpl::_threadSession().
| void libtorrent::session::set_severity_level | ( | alert::severity_t | s | ) |
Definition at line 284 of file session.cpp.
References m_impl.
Referenced by setup_transfer(), and vmsBtSessionImpl::vmsBtSessionImpl().
Definition at line 231 of file session.hpp.
Definition at line 232 of file session.hpp.
Definition at line 233 of file session.hpp.
Definition at line 234 of file session.hpp.
Definition at line 240 of file session.hpp.
boost::shared_ptr<aux::session_impl> libtorrent::session::m_impl [private] |
Definition at line 244 of file session.hpp.
Referenced by add_dht_node(), add_dht_router(), add_extension(), add_torrent(), dht_state(), download_rate_limit(), find_torrent(), get_torrents(), is_listening(), listen_on(), listen_port(), num_connections(), num_uploads(), pop_alert(), remove_torrent(), session(), set_dht_settings(), set_download_rate_limit(), set_ip_filter(), set_key(), set_max_connections(), set_max_half_open_connections(), set_max_uploads(), set_peer_id(), set_settings(), set_severity_level(), set_upload_rate_limit(), settings(), start_dht(), status(), stop_dht(), upload_rate_limit(), and ~session().
1.5.6