#include <sstream>#include <IPAddressResolver.h>#include <IPvXAddress.h>#include <IInterfaceTable.h>#include <IPv4InterfaceData.h>#include <RpcMacros.h>#include <InitStages.h>#include <NeighborCache.h>#include <GlobalStatistics.h>#include <BootstrapList.h>#include <assert.h>#include "BasePastry.h"Go to the source code of this file.
Functions | |
| bool | stateMsgIsSmaller (const PastryStateMsgHandle &hnd1, const PastryStateMsgHandle &hnd2) |
| predicate for comparing two pointers to PastryStateMessages based on their joinHopCount. | |
| std::ostream & | operator<< (std::ostream &os, const PastryStateMsgProximity pr) |
Definition in file BasePastry.cc.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const PastryStateMsgProximity | pr | |||
| ) |
Definition at line 1452 of file BasePastry.cc.
01453 { 01454 os << "PastryStateMsgProximity {" << endl; 01455 os << " pr_rt {" << endl; 01456 for (std::vector<simtime_t>::const_iterator i = pr.pr_rt.begin(); 01457 i != pr.pr_rt.end(); ++i) { 01458 os << " " << *i << endl; 01459 } 01460 os << " }" << endl; 01461 os << " pr_ls {" << endl; 01462 for (std::vector<simtime_t>::const_iterator i = pr.pr_ls.begin(); 01463 i != pr.pr_ls.end(); ++i) { 01464 os << " " << *i << endl; 01465 } 01466 os << " }" << endl; 01467 os << " pr_ns {" << endl; 01468 for (std::vector<simtime_t>::const_iterator i = pr.pr_ns.begin(); 01469 i != pr.pr_ns.end(); ++i) { 01470 os << " " << *i << endl; 01471 } 01472 os << " }" << endl; 01473 os << "}" << endl; 01474 return os; 01475 }
| bool stateMsgIsSmaller | ( | const PastryStateMsgHandle & | hnd1, | |
| const PastryStateMsgHandle & | hnd2 | |||
| ) |
predicate for comparing two pointers to PastryStateMessages based on their joinHopCount.
Needed for sorting the received PastryStateMessages.
Definition at line 1446 of file BasePastry.cc.
Referenced by Pastry::handleStateMessage(), and Pastry::handleTimerEvent().
01448 { 01449 return (hnd1.msg->getJoinHopCount() < hnd2.msg->getJoinHopCount()); 01450 }
1.5.8