#include <DiscoveryMode.h>
Protected Member Functions |
void | proxCallback (const TransportAddress &node, int rpcId, cPolymorphic *contextPointer, Prox prox) |
void | sendNewRequest (DiscoveryNodesType type, uint8_t numNodes) |
virtual void | handleRpcResponse (BaseResponseMessage *msg, cPolymorphic *context, int rpcId, simtime_t rtt) |
| This method is called if an RPC response has been received.
|
virtual void | handleRpcResponse (BaseResponseMessage *msg, const RpcState &rpcState, simtime_t rtt) |
| This method is called if an RPC response has been received.
|
virtual void | handleRpcTimeout (BaseCallMessage *msg, const TransportAddress &dest, cPolymorphic *context, int rpcId, const OverlayKey &destKey) |
| This method is called if an RPC timeout has been reached.
|
virtual void | handleRpcTimeout (const RpcState &rpcState) |
| This method is called if an RPC timeout has been reached.
|
Detailed Description
Definition at line 17 of file DiscoveryMode.h.
Constructor & Destructor Documentation
virtual DiscoveryMode::~DiscoveryMode |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
double DiscoveryMode::getImprovement |
( |
| ) |
|
|
inline |
Definition at line 97 of file DiscoveryMode.cc.
Referenced by NeighborCache::handleRpcCall().
{
if (dynamic_cast<DiscoveryCall*>(msg)) {
std::vector<TransportAddress>* temp;
} else {
}
} else {
}
if (rowIndex < 1) rowIndex = 1;
} else {
}
}
for (uint16_t i = 0; i < temp->size(); ++i) {
discoveryResponse->
setNodes(i, (*temp)[i]);
}
delete temp;
return true;
}
return false;
}
void DiscoveryMode::handleRpcResponse |
( |
BaseResponseMessage * |
msg, |
|
|
cPolymorphic * |
context, |
|
|
int |
rpcId, |
|
|
simtime_t |
rtt |
|
) |
| |
Definition at line 140 of file DiscoveryMode.cc.
{
if (dynamic_cast<DiscoveryResponse*>(msg)) {
<< " receiving DiscoveryResponse from "
<<
" (step = " << (int)
step <<
")"
<< endl;
EV << " , which is now the closest known neighbor."
<< endl;
}
}
node = &(discoveryResponse->
getNodes(i));
-1, this, NULL);
}
}
}
<< endl;
}
}
bool DiscoveryMode::isFinished |
( |
| ) |
|
|
inline |
void DiscoveryMode::proxCallback |
( |
const TransportAddress & |
node, |
|
|
int |
rpcId, |
|
|
cPolymorphic * |
contextPointer, |
|
|
Prox |
prox |
|
) |
| |
|
protected |
void DiscoveryMode::stop |
( |
| ) |
|
Member Data Documentation
bool DiscoveryMode::finished |
|
private |
double DiscoveryMode::firstRtt |
|
private |
double DiscoveryMode::improvement |
|
private |
int8_t DiscoveryMode::maxIndex |
|
protected |
uint8_t DiscoveryMode::maxSteps |
|
protected |
bool DiscoveryMode::nearNodeImproved |
|
protected |
simtime_t DiscoveryMode::nearNodeRtt |
|
protected |
uint8_t DiscoveryMode::numCloseNodes |
|
private |
uint8_t DiscoveryMode::numSpreadedNodes |
|
private |
uint8_t DiscoveryMode::queries |
|
protected |
int8_t DiscoveryMode::spreadedSteps |
|
protected |
int16_t DiscoveryMode::step |
|
protected |
The documentation for this class was generated from the following files: