OverSim
PastryRoutingTable.cc File Reference

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 364 of file PastryRoutingTable.cc.

{
os << "Pastry IRoutingTable row {" << endl;
for (PRTRow::const_iterator i = row.begin(); i != row.end(); i++) {
os << " " << i->node << " ; Ping: ";
if (i->rtt != SimTime::getMaxTime())
os << i->rtt << endl;
else os << "<unknown>" << endl;
}
os << " }";
return os;
}