Changeset 5665 for source/ariba/overlay
- Timestamp:
- Aug 4, 2009, 3:44:21 PM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5664 r5665 354 354 // find next hop 355 355 const route_item* item = table->get_next_hop( 356 m->getDestination() );357 if (item ->id == nodeid) break;356 m->getDestination(),true); 357 if (item == NULL || item->id == nodeid) break; 358 358 logging_debug("routing discovery message to " << 359 359 item->id.toString() ); -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r5663 r5665 248 248 249 249 /// returns the next hop 250 const item* get_next_hop( const nodeid_t& value 250 const item* get_next_hop( const nodeid_t& value, bool nts = false) { 251 251 ring_distance distance; 252 252 item* best_item = NULL; 253 253 for (size_t i=0; i<table.size(); i++) { 254 254 item* curr = &table[i]; 255 if (nts && curr->id == value) continue; 255 256 256 257 // not not include orphans into routing!
Note:
See TracChangeset
for help on using the changeset viewer.