Changeset 10572 for source/ariba/overlay/modules/onehop
- Timestamp:
- Jun 18, 2012, 1:40:59 PM (12 years ago)
- Location:
- source/ariba/overlay/modules/onehop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/onehop/OneHop.cpp
r8620 r10572 122 122 } 123 123 124 /// @see OverlayInterface.h 125 const NodeID& OneHop::getNextNodeId( const NodeID& id ) const { 126 OverlayNodeMapping::const_iterator i = overlayNodes.find( id ); 127 128 // FIXME: in case the NodeID is not known we should return the nearest node 129 if (i == overlayNodes.end()) { 130 return NodeID::UNSPECIFIED; 131 } 132 133 return i->first; 134 } 135 124 136 void OneHop::createOverlay() { 125 137 // don't need to bootstrap against ourselfs. -
source/ariba/overlay/modules/onehop/OneHop.h
r6266 r10572 85 85 /// @see OverlayInterface.h 86 86 virtual const LinkID& getNextLinkId( const NodeID& id ) const; 87 88 /// @see OverlayInterface.h 89 virtual const NodeID& getNextNodeId( const NodeID& id ) const; 87 90 88 91 /// @see OverlayInterface.h
Note:
See TracChangeset
for help on using the changeset viewer.