NeighborCache.cc File Reference

#include <cassert>
#include <TransportAddress.h>
#include <NodeHandle.h>
#include <PeerInfo.h>
#include <GlobalStatisticsAccess.h>
#include <CoordMessages_m.h>
#include <GlobalNodeListAccess.h>
#include <hashWatch.h>
#include "NeighborCache.h"
#include <omnetpp.h>
#include <map>
#include <cfloat>
#include <deque>
#include <BaseApp.h>
#include <CoordinateSystem.h>
#include <Nps.h>
#include <Vivaldi.h>
#include <SVivaldi.h>
#include <ProxNodeHandle.h>
#include <HashFunc.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const NeighborCache::NeighborCacheEntry &entry)
 Define_Module (NeighborCache)

Detailed Description

Author:
Antonio Zea
Bernhard Heep

Definition in file NeighborCache.cc.


Function Documentation

Define_Module ( NeighborCache   ) 
std::ostream& operator<< ( std::ostream &  os,
const NeighborCache::NeighborCacheEntry entry 
)

Definition at line 40 of file NeighborCache.cc.

00042 {
00043     if (entry.rttState == NeighborCache::RTTSTATE_VALID) {
00044         os << entry.rtt;
00045     } else {
00046         if (entry.rttState == NeighborCache::RTTSTATE_TIMEOUT) os << "TIMEOUT";
00047         else if (entry.rttState == NeighborCache::RTTSTATE_UNKNOWN) os << "UNKNOWN";
00048         else if (entry.rttState == NeighborCache::RTTSTATE_WAITING) os << "WAITING";
00049     }
00050     os << " (inserted: " << entry.insertTime;
00051 
00052     os << ", #contexts: "
00053        << entry.waitingContexts.size();
00054 
00055     if (!entry.nodeRef.isUnspecified()) os <<  ", <KEY>";
00056 
00057     //TODO entry.coordsInfo
00058 
00059     os << ")";
00060 
00061     return os;
00062 }

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