OverSim
GlobalNodeList.cc File Reference
#include <iostream>
#include <omnetpp.h>
#include <NotificationBoard.h>
#include <BinaryValue.h>
#include <OverlayKey.h>
#include <PeerInfo.h>
#include <BaseOverlay.h>
#include <GlobalStatisticsAccess.h>
#include <hashWatch.h>
#include <BootstrapList.h>
#include "GlobalNodeList.h"

Go to the source code of this file.

Functions

 Define_Module (GlobalNodeList)
std::ostream & operator<< (std::ostream &os, const BootstrapEntry &entry)

Detailed Description

Author
Markus Mauch, Robert Palmer, Ingmar Baumgart

Definition in file GlobalNodeList.cc.

Function Documentation

Define_Module ( GlobalNodeList  )
std::ostream& operator<< ( std::ostream &  os,
const BootstrapEntry entry 
)

Definition at line 41 of file GlobalNodeList.cc.

{
for (AddrPerOverlayVector::const_iterator it2 = entry.addrVector.begin();
it2 != entry.addrVector.end(); it2++) {
NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(it2->ta);
os << "Overlay " << it2->overlayId << ": " << *(it2->ta);
if (nodeHandle) {
os << " (" << nodeHandle->getKey() << ")";
}
if (it2->bootstrapped == false) {
os << " [NOT BOOTSTRAPPED]";
}
}
os << " " << *(entry.info);
return os;
}