Changeset 5554
- Timestamp:
- Jul 31, 2009, 7:02:23 PM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5548 r5554 205 205 } 206 206 207 LinkDescriptor* BaseOverlay::getSendDescriptor( const NodeID& nodeid ) {207 LinkDescriptor* BaseOverlay::getSendDescriptor( const NodeID& nodeid, bool follow ) { 208 208 for (size_t i=0; i<links.size(); i++) 209 209 if ( !links[i]->relay && … … 216 216 } 217 217 LinkDescriptor* ld = getDescriptor(overlayInterface->getNextLinkId(nodeid)); 218 if (ld != NULL && ld->relay )219 return get RelayDescriptor(ld->localRelay);218 if (ld != NULL && ld->relay && follow) 219 return getSendDescriptor(ld->localRelay, false); 220 220 return NULL; 221 221 } -
source/ariba/overlay/BaseOverlay.h
r5539 r5554 420 420 seqnum_t sendMessage( Message* message, const LinkDescriptor* ld ); 421 421 422 LinkDescriptor* getSendDescriptor( const NodeID& nodeid );422 LinkDescriptor* getSendDescriptor( const NodeID& nodeid, bool follow = false ); 423 423 424 424 /// routes a message over the overlay or directly sends it when a link is open
Note:
See TracChangeset
for help on using the changeset viewer.