#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::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 Pastry::pingResponse().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const PastryStateMsgProximity & | pr | |||
| ) |
Definition at line 1248 of file BasePastry.cc.
{
os << "PastryStateMsgProximity {" << endl;
os << " pr_rt {" << endl;
for (std::vector<simtime_t>::const_iterator i = pr.pr_rt.begin();
i != pr.pr_rt.end(); ++i) {
os << " " << *i << endl;
}
os << " }" << endl;
os << " pr_ls {" << endl;
for (std::vector<simtime_t>::const_iterator i = pr.pr_ls.begin();
i != pr.pr_ls.end(); ++i) {
os << " " << *i << endl;
}
os << " }" << endl;
os << " pr_ns {" << endl;
for (std::vector<simtime_t>::const_iterator i = pr.pr_ns.begin();
i != pr.pr_ns.end(); ++i) {
os << " " << *i << endl;
}
os << " }" << endl;
os << "}" << endl;
return os;
}
| 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 1241 of file BasePastry.cc.
{
return (hnd1.msg->getJoinHopCount() < hnd2.msg->getJoinHopCount());
}
1.7.1