Changeset 5967 for source/ariba/utility/bootstrap
- Timestamp:
- Aug 14, 2009, 6:44:45 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
r5953 r5967 38 38 39 39 #include "BluetoothSdp.h" 40 #include "ariba/overlay/OverlayBootstrap.h" 40 41 41 42 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H … … 62 63 namespace ariba { 63 64 namespace utility { 65 64 66 use_logging_cpp(BluetoothSdp); 67 OverlayBootstrap* BluetoothSdp::CONNECTION_CHECKER = NULL; 65 68 66 69 BluetoothSdp::BluetoothSdp(BootstrapInformationCallback* _callback) : … … 258 261 // 259 262 260 //if(!haveConnections()){263 if(!haveConnections()){ 261 264 262 265 /* … … 304 307 close(sock); 305 308 306 //} else {307 //logging_debug("have active rfcomm connections, notsearching");308 //}309 310 int nextscan = (rand() % 5) + 3;309 } else { 310 logging_debug("have active connections, no sdp searching"); 311 } 312 313 int nextscan = (rand() % 10) + 5; 311 314 logging_debug("next sdp scan try in " << nextscan << " seconds"); 312 315 … … 419 422 bool BluetoothSdp::haveConnections(){ 420 423 424 // TODO: currently we check for overlay connectivity 425 426 if(CONNECTION_CHECKER == NULL) return false; 427 return CONNECTION_CHECKER->haveOverlayConnections(); 428 429 430 /* TODO: this will check for rfcomm connections 421 431 struct hci_conn_list_req* cl = NULL; 422 432 struct hci_conn_info* ci = NULL; … … 445 455 446 456 return haveconn; 457 */ 447 458 } 448 459 -
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h
r5638 r5967 65 65 66 66 namespace ariba { 67 namespace overlay { 68 class OverlayBootstrap; 69 } 70 } 71 72 using ariba::overlay::OverlayBootstrap; 73 74 namespace ariba { 67 75 namespace utility { 68 76 … … 70 78 use_logging_h(BluetoothSdp); 71 79 public: 80 static OverlayBootstrap* CONNECTION_CHECKER; 81 72 82 BluetoothSdp(BootstrapInformationCallback* _callback); 73 83 virtual ~BluetoothSdp();
Note:
See TracChangeset
for help on using the changeset viewer.