libtorrent::dht::find_data Class Reference

#include <find_data.hpp>

Inheritance diagram for libtorrent::dht::find_data:

libtorrent::dht::traversal_algorithm

List of all members.

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_tm_packet
bool m_done


Detailed Description

Definition at line 58 of file find_data.hpp.


Member Typedef Documentation

typedef boost::function<void(msg const*) libtorrent::dht::find_data::done_callback)

Definition at line 61 of file find_data.hpp.


Constructor & Destructor Documentation

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


Member Function Documentation

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]

Definition at line 132 of file find_data.cpp.

References find_data().

void libtorrent::dht::find_data::got_data ( msg const *  m  ) 

Definition at line 120 of file find_data.cpp.

References m_done, and m_done_callback.

void libtorrent::dht::find_data::done (  )  [private, virtual]

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


Member Data Documentation

Definition at line 87 of file find_data.hpp.

Referenced by done(), and got_data().

boost::shared_ptr<packet_t> libtorrent::dht::find_data::m_packet [private]

Definition at line 88 of file find_data.hpp.

Definition at line 89 of file find_data.hpp.

Referenced by done(), got_data(), and invoke().


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