Classes | |
| class | allocate_resources_contract_check |
| struct | piece_checker_data |
| struct | checker_impl |
| struct | session_impl |
| struct | eh_initializer |
| struct | filesystem_init |
| struct | seed_random_generator |
Functions | |
| int | give (resource_request &r, int num_resources) |
| int | div_round_up (int numerator, int denominator) |
| template<class It, class T> | |
| void | allocate_resources_impl (int resources, It start, It end, resource_request T::*res) |
| peer_connection & | pick_peer (std::pair< boost::shared_ptr< stream_socket >, boost::intrusive_ptr< peer_connection > > const &p) |
| peer_connection & | pick_peer2 (std::pair< tcp::endpoint, peer_connection * > const &p) |
| torrent & | deref (std::pair< sha1_hash, boost::shared_ptr< torrent > > const &p) |
| session & | deref (session *p) |
| void libtorrent::aux::allocate_resources_impl | ( | int | resources, | |
| It | start, | |||
| It | end, | |||
| resource_request T::* | res | |||
| ) | [inline] |
Definition at line 139 of file allocate_resources_impl.hpp.
References div_round_up(), give(), libtorrent::resource_request::given, if(), libtorrent::resource_request::inf, libtorrent::resource_request::leftovers, libtorrent::resource_request::max, libtorrent::resource_request::min, libtorrent::saturated_add(), and libtorrent::resource_request::used.
Referenced by libtorrent::allocate_resources(), and test_main().
| session& libtorrent::aux::deref | ( | session * | p | ) |
Definition at line 129 of file allocate_resources.cpp.
| torrent& libtorrent::aux::deref | ( | std::pair< sha1_hash, boost::shared_ptr< torrent > > const & | p | ) |
Definition at line 124 of file allocate_resources.cpp.
Referenced by libtorrent::allocate_resources().
| int libtorrent::aux::div_round_up | ( | int | numerator, | |
| int | denominator | |||
| ) | [inline] |
| int libtorrent::aux::give | ( | resource_request & | r, | |
| int | num_resources | |||
| ) | [inline] |
Definition at line 63 of file allocate_resources_impl.hpp.
References libtorrent::resource_request::given, and libtorrent::resource_request::max.
Referenced by allocate_resources_impl().
| peer_connection& libtorrent::aux::pick_peer | ( | std::pair< boost::shared_ptr< stream_socket >, boost::intrusive_ptr< peer_connection > > const & | p | ) |
Definition at line 111 of file allocate_resources.cpp.
| peer_connection& libtorrent::aux::pick_peer2 | ( | std::pair< tcp::endpoint, peer_connection * > const & | p | ) |
Definition at line 118 of file allocate_resources.cpp.
Referenced by libtorrent::allocate_resources().
1.5.6