Changeset 5718 for source/ariba/overlay
- Timestamp:
- Aug 5, 2009, 4:31:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5717 r5718 108 108 dmsg.setTTL((uint8_t) ttl); 109 109 cmsg.encapsulate(&dmsg); 110 discovery_count++; 111 if (discovery_count<0) discovery_count = 0;112 const route_item* item = (*table)[ discovery_count % table->size() ];113 if (item!=NULL && !item->info.isUnspecified()) send(&cmsg, item->info);110 111 // get next hop 112 const route_item* item = table->get_next_hop(destination); 113 if (item!=NULL && !item->info.isUnspecified()) send(&cmsg, item->info); 114 114 } 115 115 … … 292 292 M* m = msg.getMessage()->convert<ChordMessage> (); 293 293 if (m == NULL) return; 294 295 // drop-self messages296 if (m->getSource() == nodeid ) {297 delete m;298 return;299 }300 294 301 295 // handle messages
Note:
See TracChangeset
for help on using the changeset viewer.