#include <iostream>#include "libtorrent/peer_connection.hpp"#include <boost/date_time/posix_time/posix_time.hpp>#include <boost/bind.hpp>#include "libtorrent/web_peer_connection.hpp"#include "libtorrent/policy.hpp"#include "libtorrent/torrent.hpp"#include "libtorrent/socket.hpp"#include "libtorrent/alert_types.hpp"#include "libtorrent/invariant_check.hpp"#include "libtorrent/aux_/session_impl.hpp"Go to the source code of this file.
Namespaces | |
| namespace | libtorrent |
Functions | |
| size_type | collect_free_download (torrent::peer_iterator start, torrent::peer_iterator end) |
| size_type | distribute_free_upload (torrent::peer_iterator start, torrent::peer_iterator end, size_type free_upload) |
| void | libtorrent::request_a_block (torrent &t, peer_connection &c, std::vector< peer_connection * > ignore=std::vector< peer_connection * >()) |
| size_type @284::collect_free_download | ( | torrent::peer_iterator | start, | |
| torrent::peer_iterator | end | |||
| ) | [static] |
| size_type @284::distribute_free_upload | ( | torrent::peer_iterator | start, | |
| torrent::peer_iterator | end, | |||
| size_type | free_upload | |||
| ) | [static] |
Definition at line 70 of file policy.cpp.
References libtorrent::peer_connection::add_free_upload(), libtorrent::peer_connection::is_peer_interested(), and libtorrent::peer_connection::share_diff().
Referenced by libtorrent::policy::pulse().
| const peer_connection& m_conn |
Definition at line 130 of file policy.cpp.
Definition at line 118 of file policy.cpp.
1.5.6