Changeset 5628 for source/ariba/overlay/modules
- Timestamp:
- Aug 3, 2009, 4:43:36 PM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5624 r5628 376 376 } 377 377 } 378 delete dmsg; 378 379 break; 379 380 } … … 393 394 394 395 void Chord::eventFunction() { 396 pending.clear(); 395 397 stabilize_counter++; 396 if (stabilize_counter == 3) { 397 pending.clear(); 398 if (stabilize_counter == 2) { 398 399 size_t numNeighbors = 0; 399 400 for (size_t i = 0; i < table->size(); i++) { -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r5432 r5628 253 253 for (size_t i=0; i<table.size(); i++) { 254 254 item* curr = &table[i]; 255 255 256 // not not include orphans into routing! 256 257 if (curr->ref_count==0) continue; -
source/ariba/overlay/modules/chord/messages/Discovery.h
r4625 r5628 74 74 explicit Discovery(); 75 75 virtual ~Discovery(); 76 /*77 typedef pair<NodeID,EndpointDescriptor*> NodeEndpoint;78 typedef vector<NodeEndpoint> NodeEndpointList;79 80 void add(const NodeID& node, EndpointDescriptor* endp);81 82 const NodeEndpointList& getList();83 */84 76 85 77 EndpointDescriptor* getSourceEndpoint() const { … … 111 103 uint8_t ttl; 112 104 EndpointDescriptor* source_endpoint; 113 // NodeEndpointList descriptors;114 105 }; 115 106 … … 117 108 118 109 sznBeginDefault( ariba::overlay::Discovery, X ) { 119 120 110 /// serialize follow-type and time-to-live 121 111 X && follow_type && ttl; … … 123 113 // serialize end-point 124 114 X && VO(source_endpoint); 125 /*126 // serialize length of descriptor list127 uint16_t len = descriptors.size();128 X && len;129 if (X.isDeserializer()) descriptors.resize(len);130 131 // serialize descriptors132 for (int i=0; i<len; i++)133 X && &descriptors[i].first && VO(descriptors[i].second);134 135 // serialize payload136 X && Payload();137 */138 115 } sznEnd(); 139 116
Note:
See TracChangeset
for help on using the changeset viewer.