Definition in file BasePastry.h.
#include <vector>
#include <map>
#include <queue>
#include <algorithm>
#include <omnetpp.h>
#include <IPvXAddress.h>
#include <OverlayKey.h>
#include <NodeHandle.h>
#include <BaseOverlay.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) |
| #define DISCOVERY JOINING_1 |
Definition at line 47 of file BasePastry.h.
Referenced by BasePastry::baseChangeState(), 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 1357 of file BasePastry.cc.
01358 { 01359 os << "PastryStateMsgProximity {" << endl; 01360 os << " pr_rt {" << endl; 01361 for (std::vector<simtime_t>::const_iterator i = pr.pr_rt.begin(); 01362 i != pr.pr_rt.end(); ++i) { 01363 os << " " << *i << endl; 01364 } 01365 os << " }" << endl; 01366 os << " pr_ls {" << endl; 01367 for (std::vector<simtime_t>::const_iterator i = pr.pr_ls.begin(); 01368 i != pr.pr_ls.end(); ++i) { 01369 os << " " << *i << endl; 01370 } 01371 os << " }" << endl; 01372 os << " pr_ns {" << endl; 01373 for (std::vector<simtime_t>::const_iterator i = pr.pr_ns.begin(); 01374 i != pr.pr_ns.end(); ++i) { 01375 os << " " << *i << endl; 01376 } 01377 os << " }" << endl; 01378 os << "}" << endl; 01379 return os; 01380 }
| 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 1351 of file BasePastry.cc.
Referenced by Pastry::handleStateMessage(), and Pastry::handleTimerEvent().
1.5.5