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"
#include <map>
#include <vector>
#include <oversim_mapset.h>
#include <ChurnGenerator.h>
#include <HashFunc.h>
#include <NodeHandle.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

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.

00042 {
00043     NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(entry.node);
00044 
00045     os << "Address: " << entry.node->getAddress()
00046        << " Port: " << entry.node->getPort();
00047 
00048     if (nodeHandle) {
00049         os << " NodeId: " << nodeHandle->getKey();
00050     }
00051 
00052     os << " ModuleID: "
00053        << entry.info->getModuleID() << " Bootstrapped: "
00054        << (entry.info->isBootstrapped() ? "true" : "false")
00055        << " NPS Layer: " << ((int) entry.info->getNpsLayer())
00056        << " TypeID: " << (entry.info->getTypeID());
00057 
00058     return os;
00059 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3