libtorrent::dht Namespace Reference


Classes

class  closest_nodes
struct  dht_tracker
class  find_data
class  log
class  log_event
class  inverted_log_event
struct  peer_entry
struct  torrent_entry
struct  null_type
class  node_impl
struct  node_entry
class  packet_iterator
class  refresh
class  routing_table
struct  msg
struct  observer
class  rpc_manager
class  traversal_algorithm
class  closest_nodes_observer
class  find_data_observer
class  refresh_observer
class  ping_observer

Namespaces

namespace  aux
namespace  messages

Typedefs

typedef std::vector< char > packet_t
typedef libtorrent::big_number node_id
typedef std::deque< node_entrybucket_t
typedef boost::shared_ptr
< observer
observer_ptr
typedef asio::ip::address_v4 address

Enumerations

enum  { announce_interval = 30 }

Functions

TORRENT_EXPORT void intrusive_ptr_add_ref (dht_tracker const *)
TORRENT_EXPORT void intrusive_ptr_release (dht_tracker const *)
bool operator< (peer_entry const &lhs, peer_entry const &rhs)
node_id distance (node_id const &n1, node_id const &n2)
bool compare_ref (node_id const &n1, node_id const &n2, node_id const &ref)
int distance_exp (node_id const &n1, node_id const &n2)
node_id generate_id ()
void purge_peers (std::set< peer_entry > &peers)
void nop ()
void announce_fun (std::vector< node_entry > const &v, rpc_manager &rpc, int listen_port, sha1_hash const &ih, boost::function< void(std::vector< tcp::endpoint > const &, sha1_hash const &)> f)
tcp::endpoint get_endpoint (peer_entry const &p)
bool bitwise_nand (unsigned char lhs, unsigned char rhs)


Typedef Documentation

Definition at line 35 of file routing_table.cpp.

Definition at line 63 of file routing_table.hpp.

Definition at line 44 of file node_id.hpp.

typedef boost::shared_ptr< observer > libtorrent::dht::observer_ptr

Definition at line 17 of file closest_nodes.cpp.

typedef std::vector< char > libtorrent::dht::packet_t

Definition at line 52 of file find_data.hpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
announce_interval 

Definition at line 46 of file node.cpp.


Function Documentation

void libtorrent::dht::@274::announce_fun ( std::vector< node_entry > const &  v,
rpc_manager &  rpc,
int  listen_port,
sha1_hash const &  ih,
boost::function< void(std::vector< tcp::endpoint > const &, sha1_hash const &)>  f 
) [static]

bool libtorrent::dht::@279::bitwise_nand ( unsigned char  lhs,
unsigned char  rhs 
) [static]

bool libtorrent::dht::compare_ref ( node_id const &  n1,
node_id const &  n2,
node_id const &  ref 
)

node_id libtorrent::dht::distance ( node_id const &  n1,
node_id const &  n2 
)

int libtorrent::dht::distance_exp ( node_id const &  n1,
node_id const &  n2 
)

node_id libtorrent::dht::generate_id (  ) 

tcp::endpoint libtorrent::dht::@274::get_endpoint ( peer_entry const &  p  )  [static]

Definition at line 438 of file node.cpp.

References libtorrent::dht::peer_entry::addr.

Referenced by libtorrent::dht::node_impl::on_find().

void libtorrent::dht::intrusive_ptr_add_ref ( dht_tracker const *  c  ) 

Definition at line 105 of file dht_tracker.cpp.

References libtorrent::dht::dht_tracker::m_refs.

void libtorrent::dht::intrusive_ptr_release ( dht_tracker const *  c  ) 

Definition at line 112 of file dht_tracker.cpp.

References libtorrent::dht::dht_tracker::m_refs.

void libtorrent::dht::nop (  ) 

bool libtorrent::dht::operator< ( peer_entry const &  lhs,
peer_entry const &  rhs 
) [inline]

void libtorrent::dht::purge_peers ( std::set< peer_entry > &  peers  ) 


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