Changeset 5882 for source/ariba
- Timestamp:
- Aug 12, 2009, 12:46:17 PM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5879 r5882 230 230 231 231 /// routes a message to its destination node 232 void BaseOverlay::route( OverlayMsg* message , LinkDescriptor* incomingLink) {232 void BaseOverlay::route( OverlayMsg* message ) { 233 233 234 234 // exceeded time-to-live? yes-> drop message … … 241 241 // destinastion myself? yes-> handle message 242 242 if (message->getDestinationNode() == nodeId) 243 handleMessage( message, incomingLink);243 handleMessage( message, NULL ); 244 244 else 245 245 // no->send message to next hop … … 392 392 || ld->relayed 393 393 || !message->isRelayed() 394 || !(message->getService() == OverlayInterface::OVERLAY_SERVICE_ID)394 // || !(message->getService() == OverlayInterface::OVERLAY_SERVICE_ID) 395 395 || message->getSourceNode()==nodeId ) return; 396 396 … … 718 718 // erase descriptor 719 719 eraseDescriptor( ld->overlayId ); 720 } else 720 } else { 721 721 ld->dropAfterRelaying = true; 722 } 722 723 } 723 724 … … 1496 1497 ); 1497 1498 1498 route( overlayMsg , ld);1499 route( overlayMsg ); 1499 1500 delete overlayMsg; 1500 1501 return true; -
source/ariba/overlay/BaseOverlay.h
r5876 r5882 467 467 468 468 /// routes a message to its destination node 469 void route( OverlayMsg* message , LinkDescriptor* incomingLink);469 void route( OverlayMsg* message ); 470 470 471 471 /// sends a raw message to another node, delivers it to the base overlay class -
source/ariba/overlay/modules/chord/Chord.cpp
r5881 r5882 340 340 // no-> route message 341 341 else { 342 baseoverlay. send( m, m->getDestinationNode());342 baseoverlay.route( m ); 343 343 } 344 344 break; … … 349 349 case Discovery::predecessor: { 350 350 // reached destination? no->forward! 351 if (m->getDestinationNode() != nodeid && !table->is_closest_to(m->getDestinationNode())) {351 if (m->getDestinationNode() != nodeid) { 352 352 OverlayMsg omsg(*m); 353 353 omsg.encapsulate(dmsg);
Note:
See TracChangeset
for help on using the changeset viewer.