Changeset 6919 for source/ariba/overlay/modules
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- Location:
- source/ariba/overlay/modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayInterface.h
r6854 r6919 179 179 BaseOverlay& baseoverlay; 180 180 181 /// The parameters of the overlay structure182 OverlayParameterSet parameters;183 184 181 /// The node identifier to use with this overlay 185 182 const NodeID& nodeid; … … 187 184 /// The listener used to inform about overlay structure changes 188 185 OverlayStructureEvents* eventsReceiver; 186 187 /// The parameters of the overlay structure 188 OverlayParameterSet parameters; 189 189 190 190 /// The service identifer of this overlay -
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 -
source/ariba/overlay/modules/onehop/OneHop.cpp
r6266 r6919 241 241 if( onemsg->isType( OneHopMessage::OneHopMessageTypeListingRequest ) ){ 242 242 243 NodeListingRequest* request = onemsg->decapsulate<NodeListingRequest>();243 //NodeListingRequest* request = onemsg->decapsulate<NodeListingRequest>(); 244 244 245 245 logging_info( "onehop received node listing request from node " << remote.toString() );
Note:
See TracChangeset
for help on using the changeset viewer.