Changeset 5554 for source


Ignore:
Timestamp:
Jul 31, 2009, 7:02:23 PM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba/overlay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r5548 r5554  
    205205}
    206206
    207 LinkDescriptor* BaseOverlay::getSendDescriptor( const NodeID& nodeid ) {
     207LinkDescriptor* BaseOverlay::getSendDescriptor( const NodeID& nodeid, bool follow ) {
    208208        for (size_t i=0; i<links.size(); i++)
    209209                if ( !links[i]->relay &&
     
    216216                }
    217217        LinkDescriptor* ld = getDescriptor(overlayInterface->getNextLinkId(nodeid));
    218         if (ld != NULL && ld->relay)
    219                 return getRelayDescriptor(ld->localRelay);
     218        if (ld != NULL && ld->relay && follow)
     219                return getSendDescriptor(ld->localRelay, false);
    220220        return NULL;
    221221}
  • source/ariba/overlay/BaseOverlay.h

    r5539 r5554  
    420420        seqnum_t sendMessage( Message* message, const LinkDescriptor* ld );
    421421
    422         LinkDescriptor* getSendDescriptor( const NodeID& nodeid );
     422        LinkDescriptor* getSendDescriptor( const NodeID& nodeid, bool follow = false );
    423423
    424424        /// 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.