#include <find_data.hpp>

Public Types | |
| typedef boost::function< void(msg const *) | done_callback ) |
Public Member Functions | |
| void | got_data (msg const *m) |
Static Public Member Functions | |
| static void | initiate (node_id target, int branch_factor, int max_results, routing_table &table, rpc_manager &rpc, done_callback const &callback) |
Private Member Functions | |
| void | done () |
| void | invoke (node_id const &id, udp::endpoint addr) |
| find_data (node_id target, int branch_factor, int max_results, routing_table &table, rpc_manager &rpc, done_callback const &callback) | |
Private Attributes | |
| done_callback | m_done_callback |
| boost::shared_ptr< packet_t > | m_packet |
| bool | m_done |
Definition at line 58 of file find_data.hpp.
| typedef boost::function<void(msg const*) libtorrent::dht::find_data::done_callback) |
Definition at line 61 of file find_data.hpp.
| libtorrent::dht::find_data::find_data | ( | node_id | target, | |
| int | branch_factor, | |||
| int | max_results, | |||
| routing_table & | table, | |||
| rpc_manager & | rpc, | |||
| done_callback const & | callback | |||
| ) | [private] |
Definition at line 84 of file find_data.cpp.
References libtorrent::dht::traversal_algorithm::add_requests().
Referenced by initiate().
| void libtorrent::dht::find_data::initiate | ( | node_id | target, | |
| int | branch_factor, | |||
| int | max_results, | |||
| routing_table & | table, | |||
| rpc_manager & | rpc, | |||
| done_callback const & | callback | |||
| ) | [static] |
| void libtorrent::dht::find_data::got_data | ( | msg const * | m | ) |
| void libtorrent::dht::find_data::done | ( | ) | [private, virtual] |
Implements libtorrent::dht::traversal_algorithm.
Definition at line 126 of file find_data.cpp.
References m_done, m_done_callback, and libtorrent::dht::traversal_algorithm::m_invoke_count.
| void libtorrent::dht::find_data::invoke | ( | node_id const & | id, | |
| udp::endpoint | addr | |||
| ) | [private, virtual] |
Implements libtorrent::dht::traversal_algorithm.
Definition at line 108 of file find_data.cpp.
References libtorrent::dht::messages::get_peers, libtorrent::dht::rpc_manager::invoke(), m_done, libtorrent::dht::traversal_algorithm::m_invoke_count, libtorrent::dht::traversal_algorithm::m_rpc, and libtorrent::dht::traversal_algorithm::m_target.
boost::shared_ptr<packet_t> libtorrent::dht::find_data::m_packet [private] |
Definition at line 88 of file find_data.hpp.
bool libtorrent::dht::find_data::m_done [private] |
1.5.6