OverSim
Kademlia.cc File Reference
#include "Kademlia.h"
#include "KademliaMessage_m.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

Macros

#define BUCKET_CONSISTENCY(msg)

Functions

 Define_Module (Kademlia)
std::ostream & operator<< (std::ostream &os, const KademliaBucket *n)

Detailed Description

Author
Sebastian Mies, Ingmar Baumgart, Bernhard Heep

Definition in file Kademlia.cc.

Macro Definition Documentation

#define BUCKET_CONSISTENCY (   msg)

Function Documentation

Define_Module ( Kademlia  )
std::ostream& operator<< ( std::ostream &  os,
const KademliaBucket n 
)

Definition at line 63 of file Kademlia.cc.

{
if (n == NULL)
os << "NULL";
else {
for (KademliaBucket::const_iterator i=n->begin(); i !=n->end(); i++) {
os << *i << endl;
}
os << "last usage = " << n->getLastUsage();
}
return os;
};