#include <vector>#include <map>#include <queue>#include <algorithm>#include <omnetpp.h>#include <IPvXAddress.h>#include <OverlayKey.h>#include <NodeHandle.h>#include <BaseOverlay.h>#include <NeighborCache.h>#include "PastryTypes.h"#include "PastryMessage_m.h"#include "PastryRoutingTable.h"#include "PastryLeafSet.h"#include "PastryNeighborhoodSet.h"Go to the source code of this file.
Classes | |
| class | BasePastry |
| struct | BasePastry::BasePastry::PingContext |
Defines | |
| #define | DISCOVERY JOINING_1 |
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.h.
| #define DISCOVERY JOINING_1 |
Definition at line 48 of file BasePastry.h.
Referenced by Pastry::changeState(), Bamboo::changeState(), Pastry::handleStateMessage(), Pastry::handleUDPMessage(), Pastry::joinOverlay(), and BasePastry::pingResponse().
| 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