Ignore:
Timestamp:
Jul 21, 2009, 1:54:55 PM (15 years ago)
Author:
Christoph Mayer
Message:

begin merge back from relay branch

Location:
source/ariba/overlay/modules/onehop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/modules/onehop/OneHop.cpp

    r3718 r5151  
    9999}
    100100
     101void OneHop::routeMessage(const NodeID& node, const LinkID& link, Message* msg) {
     102        OneHopMessage onehopRoute( OneHopMessage::OneHopMessageTypeRoute );
     103        onehopRoute.encapsulate(msg);
     104        baseoverlay.sendMessage( &onehopRoute, link );
     105}
     106
     107/// @see OverlayInterface.h
     108const LinkID& OneHop::getNextLinkId( const NodeID& id ) const {
     109        OverlayNodeMapping::const_iterator i = overlayNodes.find( id );
     110        if (i == overlayNodes.end()) return LinkID::UNSPECIFIED;
     111        return i->second;
     112}
     113
    101114void OneHop::createOverlay() {
    102115        // don't need to bootstrap against ourselfs.
  • source/ariba/overlay/modules/onehop/OneHop.h

    r3718 r5151  
    8181
    8282        /// @see OverlayInterface.h
     83        virtual const LinkID& getNextLinkId( const NodeID& id ) const;
     84
     85        /// @see OverlayInterface.h
    8386        virtual void routeMessage(const NodeID& destnode, Message* msg);
     87
     88        /// @see OverlayInterface.h
     89        virtual void routeMessage(const NodeID& node, const LinkID& link, Message* msg);
    8490
    8591        /// @see OverlayInterface.h
Note: See TracChangeset for help on using the changeset viewer.