- Timestamp:
- Aug 4, 2009, 11:16:12 AM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5642 r5644 59 59 this->table = new chord_routing_table(_nodeid, 2); 60 60 orphan_removal_counter = 0; 61 discovery_count = 0; 61 62 stabilize_counter = 0; 62 63 stabilize_finger = 0; … … 110 111 cmsg.encapsulate(&dmsg); 111 112 msg.encapsulate(&cmsg); 112 this->onMessage(&msg, NodeID::UNSPECIFIED, LinkID::UNSPECIFIED); 113 discovery_count++; 114 const route_item* item = (*table)[ discovery_count % table->size() ]; 115 if (item!=NULL && !item->info.isUnspecified()) send(&msg,item->info); 116 // this->onMessage(&msg, NodeID::UNSPECIFIED, LinkID::UNSPECIFIED); 113 117 } 114 118 -
source/ariba/overlay/modules/chord/Chord.h
r5624 r5644 78 78 vector<LinkID> bootstrapLinks; 79 79 vector<NodeID> pending; 80 int discovery_count; 80 81 81 82 // helper: sets up a link using the "base overlay"
Note:
See TracChangeset
for help on using the changeset viewer.