Changeset 6919 for source/ariba/overlay/modules/chord
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- Location:
- source/ariba/overlay/modules/chord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r6854 r6919 79 79 80 80 // check if we already have a connection 81 for ( int i=0; i<table->size(); i++)81 for (size_t i=0; i<table->size(); i++) 82 82 if ((*table)[i]->ref_count > 0 && (*table)[i]->id == remote && !((*table)[i]->info.isUnspecified())) 83 83 return LinkID::UNSPECIFIED; … … 291 291 292 292 // handle messages 293 switch ( m->getType()) {293 switch ((signalMessageTypes)m->getType()) { 294 294 295 295 // discovery request … … 317 317 setup( dmsg->getEndpoint(), m->getSourceNode() ); 318 318 319 // delegate discovery message319 // process discovery message -------------------------- switch start -- 320 320 switch (dmsg->getType()) { 321 321 … … 388 388 baseoverlay.send(&omsg, omsg.getDestinationNode()); 389 389 break; 390 }} 390 } 391 case Discovery::invalid: 392 break; 393 394 default: 395 break; 396 } 397 // process discovery message ---------------------------- switch end -- 398 391 399 delete dmsg; 392 400 break; … … 426 434 // updating neighbors 427 435 logging_debug("Discover new ring neighbors"); 428 for ( int i=0; i<table->size(); i++) {436 for (size_t i=0; i<table->size(); i++) { 429 437 LinkID id = (*table)[i]->info; 430 438 if (!id.isUnspecified()) discover_neighbors(id); -
source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp
r5902 r6919 92 92 private: 93 93 // maximum number of fingers 94 static const int max_fingers = 32;94 static const size_t max_fingers = 32; 95 95 96 96 // the own node id
Note:
See TracChangeset
for help on using the changeset viewer.