Changeset 5900
- Timestamp:
- Aug 12, 2009, 5:41:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5897 r5900 272 272 next_link = getRelayLinkTo( destination ); 273 273 if (next_link != NULL) { 274 next_link->setRelaying();274 if (message->isRelayed()) next_link->setRelaying(); 275 275 return send(message, next_link); 276 276 } … … 315 315 // handle relayed link 316 316 if (ldr->relayed) { 317 logging_debug(" send():Resolving direct link for relayed link to "317 logging_debug("Resolving direct link for relayed link to " 318 318 << ldr->remoteNode); 319 ld = getRelayLinkTo( ldr->remoteNode );320 if (ld==NULL) {321 LinkID lnk = overlayInterface->getNextLinkId(ldr->remoteNode);322 if (!lnk.isUnspecified())323 ld = getDescriptor(lnk);324 if (ld!=NULL && ld->relayed)325 ld = NULL;326 }327 if (ld==NULL) {328 logging_error("Direct link not found.");329 return -1;330 }331 319 message->setRelayed(); 332 ld->setRelaying();320 send(message, ldr->remoteNode); 333 321 } else 334 322 ld = ldr; … … 339 327 return bc->sendMessage( ld->communicationId, message ); 340 328 } else { 341 logging_error("send(): Could not send mes age. "329 logging_error("send(): Could not send message. " 342 330 "Not a relayed link and direct link is not up."); 343 331 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.