#include "Kademlia.h"#include <assert.h>#include <algorithm>#include <IPAddressResolver.h>#include <IPvXAddress.h>#include <IInterfaceTable.h>#include <IPv4InterfaceData.h>#include "TopologyVis.h"#include <AbstractLookup.h>#include <LookupListener.h>#include <RpcMacros.h>#include <BootstrapList.h>Go to the source code of this file.
Classes | |
| class | KademliaLookupListener |
Defines | |
| #define | BUCKET_CONSISTENCY(msg) |
Functions | |
| Define_Module (Kademlia) | |
| std::ostream & | operator<< (std::ostream &os, const KademliaBucket *n) |
Definition in file Kademlia.cc.
| #define BUCKET_CONSISTENCY | ( | msg | ) |
Definition at line 56 of file Kademlia.cc.
Referenced by Kademlia::refillSiblingTable(), Kademlia::routingAdd(), Kademlia::routingInit(), and Kademlia::routingTimeout().
| Define_Module | ( | Kademlia | ) |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const KademliaBucket * | n | |||
| ) |
Definition at line 61 of file Kademlia.cc.
00062 { 00063 if (n == NULL) 00064 os << "NULL"; 00065 else { 00066 for (KademliaBucket::const_iterator i=n->begin(); i !=n->end(); i++) { 00067 os << *i << endl; 00068 } 00069 os << "last usage = " << n->getLastUsage() 00070 << ", last update = " << n->getLastUpdate(); 00071 } 00072 return os; 00073 };
1.5.8