Changeset 5420 for source/ariba/utility/bootstrap/modules
- Timestamp:
- Jul 29, 2009, 2:21:19 PM (15 years ago)
- Location:
- source/ariba/utility/bootstrap/modules/periodicbroadcast
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp
r5412 r5420 108 108 109 109 void PeriodicBroadcast::publishService(string name, string info1, string info2, string info3){ 110 Service service; 111 112 service.name = name; 113 service.info1 = info1; 114 service.info2 = info2; 115 service.info3 = info3; 110 Service service(name, info1, info2, info3) ; 116 111 117 112 boost::mutex::scoped_lock lock( localServicesMutex ); -
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r5414 r5420 101 101 } 102 102 103 _Service(const string& _name, const string& _info1, 104 const string& _info2, const string& _info3, const time_t& _lastseen = 0) 105 : name(_name), info1(_info1), info2(_info2), info3(_info3), lastseen(_lastseen){ 106 } 107 103 108 _Service(const _Service& rh) 104 109 : name(rh.name), info1(rh.info1), info2(rh.info2), … … 225 230 if( it != services->end() ) services->erase( it ); 226 231 227 Service s; 228 s.info1 = msg.getInfo1(); 229 s.info2 = msg.getInfo2(); 230 s.info3 = msg.getInfo3(); 231 s.lastseen = time(NULL); 232 Service s( msg.getName(), msg.getInfo1(), msg.getInfo2(), msg.getInfo3(), time(NULL)); 232 233 services->insert( std::make_pair(msg.getName(), s) ); 233 234 }
Note:
See TracChangeset
for help on using the changeset viewer.