Changeset 4758 for source/ariba/utility/bootstrap/BootstrapManager.cpp
- Timestamp:
- Jul 6, 2009, 11:43:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/BootstrapManager.cpp
r4733 r4758 50 50 51 51 BootstrapManager::~BootstrapManager(){ 52 53 boost::mutex::scoped_lock lock( modulesMutex ); 54 55 while( modules.size() > 0 ){ 56 ModuleMap::iterator i = modules.begin(); 57 unregisterModule( i->first ); 58 } 52 59 } 53 60 … … 63 70 64 71 BootstrapModule* module = NULL; 65 string servicetype = "_spovnet._tcp";66 72 67 73 switch(type){ 68 74 case BootstrapTypeMulticastDns: 69 module = new MulticastDns( servicetype,this);75 module = new MulticastDns(this); 70 76 break; 71 77 } … … 102 108 modules.erase(i); 103 109 110 logging_debug("bootstrap module " << module->getName() << " unregistered"); 111 104 112 return RegistrationSucceeded; 105 113 } … … 130 138 ModuleMap::iterator iend = modules.end(); 131 139 132 for( ; i != iend; i++ ) 140 for( ; i != iend; i++ ){ 141 logging_info("bootstrap manager publishing service " 142 << name << " on module " << i->second->getName()); 133 143 i->second->publishService(name, info); 144 } 134 145 } 135 146 … … 138 149 ModuleMap::iterator iend = modules.end(); 139 150 140 for( ; i != iend; i++ ) 151 for( ; i != iend; i++ ){ 152 logging_info("bootstrap manager revoking service " 153 << name << " on module " << i->second->getName()); 141 154 i->second->revokeService(name); 155 } 156 142 157 } 143 158
Note:
See TracChangeset
for help on using the changeset viewer.