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_entry > | bucket_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) |
Definition at line 35 of file routing_table.cpp.
| typedef std::deque<node_entry> libtorrent::dht::bucket_t |
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.
| 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] |
Definition at line 297 of file node.cpp.
References libtorrent::dht::node_impl::end(), libtorrent::dht::messages::get_peers, libtorrent::dht::rpc_manager::invoke(), and nodes().
Referenced by libtorrent::dht::node_impl::announce().
| bool libtorrent::dht::@279::bitwise_nand | ( | unsigned char | lhs, | |
| unsigned char | rhs | |||
| ) | [static] |
Definition at line 105 of file traversal_algorithm.cpp.
Referenced by libtorrent::dht::traversal_algorithm::add_requests().
| bool libtorrent::dht::compare_ref | ( | node_id const & | n1, | |
| node_id const & | n2, | |||
| node_id const & | ref | |||
| ) |
Definition at line 32 of file node_id.cpp.
References libtorrent::big_number::begin(), and libtorrent::big_number::end().
Referenced by libtorrent::dht::traversal_algorithm::add_entry().
| node_id libtorrent::dht::distance | ( | node_id const & | n1, | |
| node_id const & | n2 | |||
| ) |
Definition at line 20 of file node_id.cpp.
References libtorrent::big_number::begin(), and libtorrent::big_number::end().
Referenced by libtorrent::base64encode(), asio::detail::consuming_buffers< asio::mutable_buffer, MutableBufferSequence >::consuming_buffers(), libtorrent::dht::routing_table::find_node(), libtorrent::http_parser::incoming(), libtorrent::dht::dht_tracker::on_receive(), asio::detail::consuming_buffers< asio::mutable_buffer, MutableBufferSequence >::operator=(), libtorrent::http_tracker_connection::parse(), libtorrent::random_sample_n(), libtorrent::torrent_info::read_torrent_info(), libtorrent::dht::dht_tracker::tick(), and verify_encoding().
| int libtorrent::dht::distance_exp | ( | node_id const & | n1, | |
| node_id const & | n2 | |||
| ) |
Definition at line 45 of file node_id.cpp.
References b, libtorrent::big_number::begin(), libtorrent::big_number::end(), and libtorrent::big_number::size.
Referenced by libtorrent::dht::routing_table::find_node(), libtorrent::dht::routing_table::need_node(), libtorrent::dht::routing_table::node_failed(), libtorrent::dht::routing_table::node_seen(), and libtorrent::dht::node_impl::refresh_bucket().
| node_id libtorrent::dht::generate_id | ( | ) |
Definition at line 54 of file node.cpp.
References libtorrent::hasher::final(), simple_client::h, and libtorrent::hasher::update().
Referenced by libtorrent::dht::node_impl::refresh_bucket().
| 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 | ) |
| void libtorrent::dht::intrusive_ptr_release | ( | dht_tracker const * | c | ) |
| void libtorrent::dht::nop | ( | ) |
Definition at line 87 of file node.cpp.
Referenced by libtorrent::dht::node_impl::refresh(), and libtorrent::dht::node_impl::refresh_bucket().
| bool libtorrent::dht::operator< | ( | peer_entry const & | lhs, | |
| peer_entry const & | rhs | |||
| ) | [inline] |
Definition at line 79 of file node.hpp.
References libtorrent::dht::peer_entry::addr, asio::ip::basic_endpoint< InternetProtocol >::address(), and asio::ip::basic_endpoint< InternetProtocol >::port().
| void libtorrent::dht::purge_peers | ( | std::set< peer_entry > & | peers | ) |
Definition at line 69 of file node.cpp.
References announce_interval, asio::placeholders::iterator, and TORRENT_LOG.
Referenced by libtorrent::dht::node_impl::connection_timeout().
1.5.6