Changeset 6133


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

remote endpoint auflösung gefixt

Location:
source/ariba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/BaseCommunication.cpp

    r5704 r6133  
    428428                        ld.remoteLink = msg->getLocalLink();
    429429                        ld.remoteLocator = remote->clone();
     430                        ld.remoteEndpoint.getEndpoints().add(
     431                                                        msg->getLocalDescriptor().getEndpoints(),
     432                                                        endpoint_set::Layer1_4
     433                                                );
     434
     435
    430436                        localDescriptor.getEndpoints().add(
    431437                                msg->getRemoteDescriptor().getEndpoints(),
  • 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.