Changeset 5151 for source/ariba/overlay/modules/onehop
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (15 years ago)
- Location:
- source/ariba/overlay/modules/onehop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/onehop/OneHop.cpp
r3718 r5151 99 99 } 100 100 101 void 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 108 const 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 101 114 void OneHop::createOverlay() { 102 115 // don't need to bootstrap against ourselfs. -
source/ariba/overlay/modules/onehop/OneHop.h
r3718 r5151 81 81 82 82 /// @see OverlayInterface.h 83 virtual const LinkID& getNextLinkId( const NodeID& id ) const; 84 85 /// @see OverlayInterface.h 83 86 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); 84 90 85 91 /// @see OverlayInterface.h
Note:
See TracChangeset
for help on using the changeset viewer.