Changeset 7532 for source/ariba/utility/bootstrap/modules/periodicbroadcast
- Timestamp:
- Feb 4, 2010, 5:29:37 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
r5838 r7532 63 63 const unsigned int PeriodicBroadcast::serverport_v6 = 5636; 64 64 65 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback )65 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback, string info) 66 66 : BootstrapModule(_callback), 67 67 server(io_service, &newRemoteServices, &newRemoteServicesMutex) { … … 108 108 109 109 boost::mutex::scoped_lock lock( localServicesMutex ); 110 if(name.empty()) return; 111 110 112 localServices.insert( std::make_pair(name, service) ); 111 113 } … … 113 115 void PeriodicBroadcast::revokeService(string name){ 114 116 boost::mutex::scoped_lock lock( localServicesMutex ); 117 if(name.empty()) return; 115 118 116 119 ServiceList::iterator i = localServices.find( name ); -
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r6919 r7532 66 66 use_logging_h(PeriodicBroadcast); 67 67 public: 68 PeriodicBroadcast(BootstrapInformationCallback* _callback );68 PeriodicBroadcast(BootstrapInformationCallback* _callback, string info); 69 69 virtual ~PeriodicBroadcast(); 70 70 … … 275 275 276 276 PeriodicBroadcastMessage msg; 277 if(service.getName().empty()) return; 277 278 278 279 msg.setName( service.getName() ); … … 351 352 { // insert new found service 352 353 boost::mutex::scoped_lock lock( *servicesmutex ); 354 if(msg.getName().empty()) return; 353 355 354 356 ServiceList::iterator it = services->find( msg.getName() );
Note:
See TracChangeset
for help on using the changeset viewer.