libtorrent::dht::refresh Class Reference

#include <refresh.hpp>

Inheritance diagram for libtorrent::dht::refresh:

libtorrent::dht::traversal_algorithm

List of all members.

Public Types

typedef boost::function< void()> done_callback

Public Member Functions

void ping_reply (node_id id)
void ping_timeout (node_id id, bool prevent_request=false)

Static Public Member Functions

template<class InIt>
static void initiate (node_id target, int branch_factor, int max_active_pings, int max_results, routing_table &table, InIt first, InIt last, rpc_manager &rpc, done_callback const &callback)

Private Member Functions

template<class InIt>
 refresh (node_id target, int branch_factor, int max_active_pings, int max_results, routing_table &table, InIt first, InIt last, rpc_manager &rpc, done_callback const &callback)
void done ()
void invoke (node_id const &id, udp::endpoint addr)
void invoke_pings_or_finish (bool prevent_request=false)

Private Attributes

int m_max_active_pings
int m_active_pings
done_callback m_done_callback
std::vector< result >::iterator m_leftover_nodes_iterator


Detailed Description

Definition at line 53 of file refresh.hpp.


Member Typedef Documentation

typedef boost::function<void()> libtorrent::dht::refresh::done_callback

Definition at line 56 of file refresh.hpp.


Constructor & Destructor Documentation

template<class InIt>
libtorrent::dht::refresh::refresh ( node_id  target,
int  branch_factor,
int  max_active_pings,
int  max_results,
routing_table table,
InIt  first,
InIt  last,
rpc_manager rpc,
done_callback const &  callback 
) [inline, private]

Definition at line 102 of file refresh.hpp.

References libtorrent::dht::traversal_algorithm::add_requests().

Referenced by initiate().


Member Function Documentation

template<class InIt>
void libtorrent::dht::refresh::initiate ( node_id  target,
int  branch_factor,
int  max_active_pings,
int  max_results,
routing_table table,
InIt  first,
InIt  last,
rpc_manager rpc,
done_callback const &  callback 
) [inline, static]

void libtorrent::dht::refresh::ping_reply ( node_id  id  ) 

Definition at line 148 of file refresh.cpp.

References invoke_pings_or_finish(), and m_active_pings.

void libtorrent::dht::refresh::ping_timeout ( node_id  id,
bool  prevent_request = false 
)

Definition at line 154 of file refresh.cpp.

References invoke_pings_or_finish(), and m_active_pings.

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

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

void libtorrent::dht::refresh::invoke_pings_or_finish ( bool  prevent_request = false  )  [private]


Member Data Documentation

Definition at line 93 of file refresh.hpp.

Referenced by invoke_pings_or_finish().

Definition at line 94 of file refresh.hpp.

Referenced by invoke_pings_or_finish(), ping_reply(), and ping_timeout().

Definition at line 96 of file refresh.hpp.

Referenced by invoke_pings_or_finish().

Definition at line 98 of file refresh.hpp.

Referenced by done(), and invoke_pings_or_finish().


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

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