Changeset 5750 for source/ariba/overlay
- Timestamp:
- Aug 6, 2009, 3:20:32 PM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5747 r5750 277 277 278 278 // create relay link descriptor 279 LinkDescriptor* rld = getRelayDescriptor(remoteNode); 280 NodeID relayNode = rld != NULL ? rld->remoteNode : NodeID::UNSPECIFIED; 279 NodeID relayNode = getRelayNode(remoteNode); 281 280 282 281 // add descriptor … … 330 329 331 330 // timer for auto link management 332 Timer::setInterval( 500 );331 Timer::setInterval( 1000 ); 333 332 Timer::start(); 334 333 -
source/ariba/overlay/modules/chord/Chord.cpp
r5748 r5750 57 57 58 58 // create routing table 59 this->table = new chord_routing_table(_nodeid, 4);59 this->table = new chord_routing_table(_nodeid, 2); 60 60 orphan_removal_counter = 0; 61 61 discovery_count = 0; … … 124 124 dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid)); 125 125 dmsg.setFollowType(Discovery::successor); 126 dmsg.setTTL((uint8_t) 3);126 dmsg.setTTL((uint8_t)2); 127 127 cmsg.encapsulate(&dmsg); 128 128 send(&cmsg, lnk); … … 135 135 dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid)); 136 136 dmsg.setFollowType(Discovery::predecessor); 137 dmsg.setTTL((uint8_t) 3);137 dmsg.setTTL((uint8_t)2); 138 138 cmsg.encapsulate(&dmsg); 139 139 send(&cmsg, lnk); … … 220 220 // all nodes that I know, fingers, succ/pred 221 221 for (size_t i = 0; i < table->size(); i++){ 222 if ( /*(*table)[i]->ref_count != 0223 && */!(*table)[i]->info.isUnspecified())222 if ((*table)[i]->ref_count != 0 223 && !(*table)[i]->info.isUnspecified()) 224 224 nodelist.push_back((*table)[i]->id); 225 225 } … … 267 267 268 268 discover_neighbors( lnk ); 269 send_discovery_to(remote);270 269 271 270 vector<LinkID>::iterator it = std::find(bootstrapLinks.begin(), bootstrapLinks.end(), lnk);
Note:
See TracChangeset
for help on using the changeset viewer.