initial support for icmp errors in the DHT

This commit is contained in:
Arvid Norberg
2008-05-08 00:22:17 +00:00
parent 7434368652
commit bbf9c83edc
7 changed files with 53 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ namespace libtorrent { namespace dht
// translate bittorrent kademlia message into the generic kademlia message
// used by the library
void on_receive(udp::endpoint const& ep, char const* pkt, int size);
void on_unreachable(udp::endpoint const& ep);
private:

View File

@@ -172,6 +172,7 @@ public:
void(std::vector<node_entry> const&)> f);
void add_router_node(udp::endpoint router);
void unreachable(udp::endpoint const& ep);
void incoming(msg const& m);
void refresh();

View File

@@ -81,6 +81,8 @@ public:
, routing_table& table, send_fun const& sf);
~rpc_manager();
void unreachable(udp::endpoint const& ep);
// returns true if the node needs a refresh
bool incoming(msg const&);
time_duration tick();