OverSim
P2pnsCache.cc File Reference
#include <omnetpp.h>
#include "P2pnsCache.h"

Go to the source code of this file.

Functions

 Define_Module (P2pnsCache)
std::ostream & operator<< (std::ostream &os, const P2pnsIdCacheEntry entry)
std::ostream & operator<< (std::ostream &Stream, const P2pnsCacheEntry entry)

Detailed Description

Author
Ingmar Baumgart

Definition in file P2pnsCache.cc.

Function Documentation

Define_Module ( P2pnsCache  )
std::ostream& operator<< ( std::ostream &  os,
const P2pnsIdCacheEntry  entry 
)

Definition at line 32 of file P2pnsCache.cc.

{
os << "key: " << entry.key << " addr: " << entry.addr
<< " state: " << entry.state << " lastUsage: " << entry.lastUsage
<< " queueSize: " << entry.payloadQueue.size();
return os;
}
std::ostream& operator<< ( std::ostream &  Stream,
const P2pnsCacheEntry  entry 
)

Definition at line 41 of file P2pnsCache.cc.

{
Stream << "Value: " << entry.value;
if (entry.ttlMessage != NULL) {
Stream << "Endtime: " << entry.ttlMessage->getArrivalTime();
}
return Stream;
}