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 &  Stream,
const P2pnsCacheEntry  entry 
)

Definition at line 41 of file P2pnsCache.cc.

00042 {
00043     Stream << "Value: " << entry.value;
00044 
00045     if (entry.ttlMessage != NULL) {
00046         Stream << "Endtime: " << entry.ttlMessage->getArrivalTime();
00047     }
00048 
00049     return Stream;
00050 }

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

Definition at line 32 of file P2pnsCache.cc.

00033 {
00034     os << "key: " << entry.key << " addr: " << entry.addr
00035        << " state: " << entry.state << " lastUsage: " << entry.lastUsage
00036        << " queueSize: " << entry.payloadQueue.size();
00037 
00038     return os;
00039 }

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