Changeset 5735 for source/ariba/overlay/modules
- Timestamp:
- Aug 6, 2009, 11:01:21 AM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5732 r5735 121 121 dmsg.setSourceEndpoint(&baseoverlay.getEndpointDescriptor()); 122 122 dmsg.setFollowType(Discovery::successor); 123 dmsg.setTTL((uint8_t) 2);123 dmsg.setTTL((uint8_t)3); 124 124 cmsg.encapsulate(&dmsg); 125 125 send(&cmsg, lnk); … … 131 131 dmsg.setSourceEndpoint(&baseoverlay.getEndpointDescriptor()); 132 132 dmsg.setFollowType(Discovery::predecessor); 133 dmsg.setTTL((uint8_t) 2);133 dmsg.setTTL((uint8_t)3); 134 134 cmsg.encapsulate(&dmsg); 135 135 send(&cmsg, lnk); … … 428 428 void Chord::eventFunction() { 429 429 stabilize_counter++; 430 if (stabilize_counter < 0 || stabilize_counter == 3) {430 if (stabilize_counter < 0 || stabilize_counter == 2) { 431 431 432 432 // reset counter -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r5673 r5735 167 167 public: 168 168 /// constructs the reactive chord routing table 169 explicit chord_routing_table( const nodeid_t& id, int redundancy = 2) :169 explicit chord_routing_table( const nodeid_t& id, int redundancy = 4 ) : 170 170 id(id), succ( redundancy, succ_compare_type(this->id), *this ), 171 171 pred( redundancy, pred_compare_type(this->id), *this ) {
Note:
See TracChangeset
for help on using the changeset viewer.