26 #include <IPAddressResolver.h>
27 #include <IPvXAddress.h>
28 #include <IInterfaceTable.h>
29 #include <IPv4InterfaceData.h>
98 EV <<
"[Bamboo::changeState()]\n"
104 call->setTimestamp(simTime());
138 <<
" starting local tuning "
139 <<
"(aka neighbor's neighbors / routing table maintenance)"
146 <<
" starting leafset maintenance"
154 <<
" starting global tuning"
163 cPolymorphic* context,
int rpcId,
172 <<
" Received a RequestLeafSet RPC Response (PUSH): id="
174 <<
" msg=" << *_RequestLeafSetResponse <<
" rtt=" << rtt
185 EV <<
"[Bamboo::handleRequestLeafSetResponse() @ " <<
thisNode.
getIp()
206 EV <<
"[Bamboo::doLeafsetMaintenance()]\n"
207 <<
" leafset maintenance: pulling leafset from "
211 call->setTimestamp(simTime());
229 int* choices =
new int[lastRow + 1];
232 for (
int i = 0; i < lastRow; ++i) {
233 sum += (choices[i] = lastRow - i);
236 int rval = intuniform(0, sum);
239 rval -= choices [digit];
259 <<
" Sending Message to Node in Row" <<
rowToAsk
304 throw cRuntimeError(
"Bamboo::handleFailedNode(): failed is unspecified!");
312 EV <<
"[Bamboo::handleFailedNode()]\n"
313 <<
" lost connection to the network, trying to re-join."
327 simtime_t now = simTime();
347 EV <<
"[Bamboo::checkProxCache()]\n"
348 <<
" Merged nodes into routing table."
382 <<
" new STATE message to process "
383 <<
static_cast<void*
>(msg) <<
" in state "
391 <<
" can't handle state messages until at least reaching JOIN state."
444 <<
" stateCacheQueue full -> pop()" << endl;
462 EV <<
" Lookup successful" << endl;
480 EV <<
" Lookup failed" << endl;