Changeset 5632 for source/ariba
- Timestamp:
- Aug 3, 2009, 5:37:10 PM (15 years ago)
- Location:
- source/ariba/utility/bootstrap/modules/bluetoothsdp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
r5610 r5632 66 66 BluetoothSdp::BluetoothSdp(BootstrapInformationCallback* _callback) : 67 67 BootstrapModule(_callback), scan_timer_(io_service_) { 68 srand( time(NULL) ) ;68 srand( time(NULL) ), found(false); 69 69 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H 70 70 … … 296 296 close(sock); 297 297 298 int nextscan = (rand() % 30) + 5; 299 logging_debug("next sdp scan in " << nextscan << " seconds"); 298 if(!found){ 299 int nextscan = (rand() % 30) + 5; 300 logging_debug("next sdp scan in " << nextscan << " seconds"); 301 } 300 302 301 303 scan_timer_.expires_from_now( boost::posix_time::seconds(nextscan) ); … … 368 370 369 371 // Callback 372 found = true; 370 373 callback->onBootstrapServiceFound(name, info1, info2, info3); 371 374 } -
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h
r5412 r5632 97 97 boost::asio::deadline_timer scan_timer_; 98 98 boost::thread t_; 99 100 bool found; 101 99 102 }; 100 103
Note:
See TracChangeset
for help on using the changeset viewer.