#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 "BootstrapOracle.h"
Functions | |
Define_Module (BootstrapOracle) | |
std::ostream & | operator<< (std::ostream &os, const bootstrapEntry entry) |
Define_Module | ( | BootstrapOracle | ) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const bootstrapEntry | entry | |||
) |
00043 { 00044 NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(entry.node); 00045 00046 os << "Address: " << entry.node->ip 00047 << " Port: " << entry.node->port; 00048 00049 if (nodeHandle) { 00050 os << " NodeId: " << nodeHandle->key; 00051 } 00052 00053 os << " ModuleID: " 00054 << entry.info->getModuleID() << " Bootstrapped: " 00055 << (entry.info->isBootstrapped() ? "true" : "false") << " TypeID: " 00056 << (entry.info->getTypeID()); 00057 00058 return os; 00059 }