PastryRoutingTable.cc File Reference

#include "PastryRoutingTable.h"

Go to the source code of this file.

Functions

 Define_Module (PastryRoutingTable)
std::ostream & operator<< (std::ostream &os, const PRTRow &row)
 Stream output operator to make WATCH() do something useful with the routing table.

Detailed Description

Author:
Felix Palmen

Definition in file PastryRoutingTable.cc.


Function Documentation

Define_Module ( PastryRoutingTable   ) 
std::ostream& operator<< ( std::ostream &  os,
const PRTRow row 
)

Stream output operator to make WATCH() do something useful with the routing table.

Definition at line 360 of file PastryRoutingTable.cc.

00361 {
00362     os << "Pastry IRoutingTable row {" << endl;
00363     for (PRTRow::const_iterator i = row.begin(); i != row.end(); i++) {
00364         os << "        " << i->node << " ; Ping: ";
00365         if (i->rtt != SimTime::getMaxTime())
00366             os << i->rtt << endl;
00367         else os << "<unknown>" << endl;
00368     }
00369     os << "    }";
00370     return os;
00371 }

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