Changeset 6133 for source/ariba/overlay


Ignore:
Timestamp:
Sep 10, 2009, 2:33:32 PM (15 years ago)
Author:
Christoph Mayer
Message:

remote endpoint auflösung gefixt

File:
1 edited

Legend:

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

    r5929 r6133  
    916916
    917917        // resolve end-point descriptor from the base-overlay routing table
    918         return overlayInterface->resolveNode( node );
     918        const EndpointDescriptor& ep = overlayInterface->resolveNode( node );
     919        if(ep != EndpointDescriptor::UNSPECIFIED()) return ep;
     920
     921        // see if we can find the node in our own table
     922        BOOST_FOREACH(const LinkDescriptor* ld, links){
     923                if(ld->remoteNode != node) continue;
     924                const EndpointDescriptor& ep = bc->getEndpointDescriptor(ld->communicationId);
     925                if(ep != EndpointDescriptor::UNSPECIFIED()) return ep;
     926        }
     927
     928        return EndpointDescriptor::UNSPECIFIED();
    919929}
    920930
Note: See TracChangeset for help on using the changeset viewer.