libtorrent::dht::closest_nodes Class Reference

#include <closest_nodes.hpp>

Inheritance diagram for libtorrent::dht::closest_nodes:

libtorrent::dht::traversal_algorithm

List of all members.

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


Detailed Description

Definition at line 51 of file closest_nodes.hpp.


Member Typedef Documentation

typedef boost::function< void(std::vector<node_entry> const&) > libtorrent::dht::closest_nodes::done_callback

Definition at line 56 of file closest_nodes.hpp.


Constructor & Destructor Documentation

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().


Member Function Documentation

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]

void libtorrent::dht::closest_nodes::invoke ( node_id const &  id,
asio::ip::udp::endpoint  addr 
) [private, virtual]


Member Data Documentation

Definition at line 80 of file closest_nodes.hpp.

Referenced by done().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:21:46 2008 by  doxygen 1.5.6