Changeset 5902 for source/ariba/overlay/modules/chord
- Timestamp:
- Aug 13, 2009, 2:51:52 AM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5887 r5902 104 104 seqnum_t Chord::send( OverlayMsg* msg, const LinkID& link ) { 105 105 if (link.isUnspecified()) return 0; 106 msg->setRelayed(true);107 106 return baseoverlay.send_link( msg, link ); 108 107 } … … 116 115 117 116 OverlayMsg msg( typeDiscovery ); 118 msg.setRe layed(true);117 msg.setRegisterRelay(true); 119 118 Discovery dmsg( Discovery::normal, (uint8_t)ttl, baseoverlay.getEndpointDescriptor() ); 120 119 msg.encapsulate(&dmsg); … … 129 128 // send predecessor discovery 130 129 OverlayMsg msg( typeDiscovery ); 131 msg.setRe layed(true);130 msg.setRegisterRelay(true); 132 131 Discovery dmsg( Discovery::predecessor, ttl, 133 132 baseoverlay.getEndpointDescriptor() ); … … 139 138 OverlayMsg msg( typeDiscovery ); 140 139 msg.setSourceEndpoint( baseoverlay.getEndpointDescriptor() ); 141 msg.setRe layed(true);140 msg.setRegisterRelay(true); 142 141 Discovery dmsg( Discovery::successor, ttl, 143 142 baseoverlay.getEndpointDescriptor() ); … … 354 353 omsg.encapsulate(dmsg); 355 354 omsg.setService(OverlayInterface::OVERLAY_SERVICE_ID); 356 omsg.setRelayed(true);357 355 baseoverlay.send(&omsg, omsg.getDestinationNode()); 358 356 break; … … 382 380 omsg.setDestinationNode(item->id); 383 381 omsg.setService(OverlayInterface::OVERLAY_SERVICE_ID); 384 omsg.setRelayed(true);385 382 baseoverlay.send(&omsg, omsg.getDestinationNode()); 386 383 break; -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r5735 r5902 267 267 } 268 268 } 269 if (best_item != NULL && distance(value, id)<distance(value, best_item->id)) 270 return NULL; 269 271 return best_item; 270 272 }
Note:
See TracChangeset
for help on using the changeset viewer.