Changeset 2803
- Timestamp:
- Apr 16, 2009, 10:45:03 AM (16 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r2483 r2803 108 108 logging_info( "leaving spovnet " << spovnetId ); 109 109 110 logging_debug( "dropping all auto-links ..." ); 111 112 BOOST_FOREACH( LinkPair item, linkMapping ){ 113 if( item.second.autolink ) 114 dropLink( item.first ); 115 } 116 117 logging_debug( "leaving overlay" ); 110 118 // first, leave the overlay interface 111 119 overlayInterface->leaveOverlay(); … … 880 888 // drop links after a timeout of 30s 881 889 882 // the macro gets confused if type is passed directly 883 // because of the comma in the pair definition 884 typedef pair<LinkID,LinkItem> pairitem; 885 886 BOOST_FOREACH( pairitem item, linkMapping ){ 890 BOOST_FOREACH( LinkPair item, linkMapping ){ 887 891 if( item.second.autolink && difftime(now, item.second.lastuse) > 30) 888 892 oldlinks.push_back( item.first ); … … 890 894 891 895 BOOST_FOREACH( const LinkID lnk, oldlinks ){ 896 logging_debug( "auto-link " << lnk.toString() << " timed out and is getting dropped" ); 892 897 dropLink( lnk ); 893 898 } -
source/ariba/overlay/BaseOverlay.h
r2483 r2803 348 348 349 349 typedef map<const LinkID, LinkItem> LinkMapping; 350 typedef pair<const LinkID,LinkItem> LinkPair; 350 351 LinkMapping linkMapping; 351 352 352 353 // nodes with pending joines. TODO: should be cleaned every some seconds 353 354 // add timestamps to each, and check on occasion
Note:
See TracChangeset
for help on using the changeset viewer.