#include <closest_nodes.hpp>

Public Types | |
| typedef boost::function< void(std::vector < node_entry > const &) > | done_callback |
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, asio::ip::udp::endpoint addr) |
| closest_nodes (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 |
Definition at line 51 of file closest_nodes.hpp.
| typedef boost::function< void(std::vector<node_entry> const&) > libtorrent::dht::closest_nodes::done_callback |
Definition at line 56 of file closest_nodes.hpp.
| libtorrent::dht::closest_nodes::closest_nodes | ( | node_id | target, | |
| int | branch_factor, | |||
| int | max_results, | |||
| routing_table & | table, | |||
| rpc_manager & | rpc, | |||
| done_callback const & | callback | |||
| ) | [private] |
Definition at line 79 of file closest_nodes.cpp.
References libtorrent::dht::traversal_algorithm::add_requests().
Referenced by initiate().
| void libtorrent::dht::closest_nodes::initiate | ( | node_id | target, | |
| int | branch_factor, | |||
| int | max_results, | |||
| routing_table & | table, | |||
| rpc_manager & | rpc, | |||
| done_callback const & | callback | |||
| ) | [static] |
Definition at line 121 of file closest_nodes.cpp.
References closest_nodes().
Referenced by libtorrent::dht::node_impl::announce().
| void libtorrent::dht::closest_nodes::done | ( | ) | [private, virtual] |
Implements libtorrent::dht::traversal_algorithm.
Definition at line 108 of file closest_nodes.cpp.
References libtorrent::dht::routing_table::bucket_size(), asio::placeholders::iterator, m_done_callback, libtorrent::dht::traversal_algorithm::m_results, and libtorrent::dht::traversal_algorithm::m_table.
| void libtorrent::dht::closest_nodes::invoke | ( | node_id const & | id, | |
| asio::ip::udp::endpoint | addr | |||
| ) | [private, virtual] |
Implements libtorrent::dht::traversal_algorithm.
Definition at line 102 of file closest_nodes.cpp.
References libtorrent::dht::messages::find_node, libtorrent::dht::rpc_manager::invoke(), libtorrent::dht::traversal_algorithm::m_rpc, and libtorrent::dht::traversal_algorithm::m_target.
1.5.6