{
if (dynamic_cast<BaseRouteMessage*>(
msg)) {
EV << "[SendToKeyListener::lookupFinished()]\n"
" [ERROR] SendToKeyListener: Valid result, "
"but empty array." << endl;
} else {
for (uint32_t i=0; i<lookup->
getResult().size(); i++) {
}
}
} else {
EV << "[SendToKeyListener::lookupFinished()]\n"
<< " Lookup failed - dropping message"
<< endl;
}
}
else if (dynamic_cast<LookupCall*>(
msg)) {
for (uint32_t i=0; i<lookup->
getResult().size(); i++) {
}
EV << "[SendToKeyListener::lookupFinished() @ "
<< " LookupCall "
<< " failed! (size=0)" << endl;
}
} else {
EV << "[SendToKeyListener::lookupFinished() @ "
<< " LookupCall "
<< " failed!" << endl;
}
} else {
throw cRuntimeError("SendToKeyListener::lookupFinished(): "
"Unknown message type!");
}
delete this;
}