- Timestamp:
- Jul 29, 2009, 2:35:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r5420 r5421 228 228 229 229 ServiceList::iterator it = services->find( msg.getName() ); 230 if( it != services->end() ) services->erase( it ); 231 232 Service s( msg.getName(), msg.getInfo1(), msg.getInfo2(), msg.getInfo3(), time(NULL)); 233 services->insert( std::make_pair(msg.getName(), s) ); 230 if( it != services->end() ){ 231 232 it->second.info1 = msg.getInfo1(); 233 it->second.info2 = msg.getInfo2(); 234 it->second.info3 = msg.getInfo3(); 235 it->second.lastseen = time(NULL); 236 237 } else { 238 Service s( msg.getName(), msg.getInfo1(), msg.getInfo2(), msg.getInfo3(), time(NULL)); 239 services->insert( std::make_pair(msg.getName(), s) ); 240 } 234 241 } 235 242
Note:
See TracChangeset
for help on using the changeset viewer.