Changeset 5967 for source/ariba/utility
- Timestamp:
- Aug 14, 2009, 6:44:45 PM (15 years ago)
- Location:
- source/ariba/utility
- Files:
-
- 3 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(); -
source/ariba/utility/system/StartupWrapper.cpp
r5926 r5967 104 104 // set up again an individual level if you like 105 105 106 {106 /*{ 107 107 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("MCPO")); 108 108 logger->setLevel(log4cxx::Level::getDebug()); 109 109 } 110 { 111 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BaseCommunication")); 112 logger->setLevel(log4cxx::Level::getDebug()); 113 }*/ 114 { 115 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("OverlayBootstrap")); 116 logger->setLevel(log4cxx::Level::getDebug()); 117 } 118 { 119 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BootstrapManager")); 120 logger->setLevel(log4cxx::Level::getDebug()); 121 } 122 { 123 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BluetoothSdp")); 124 logger->setLevel(log4cxx::Level::getDebug()); 125 } 110 126 /*{ 111 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BaseCommunication"));112 logger->setLevel(log4cxx::Level::getDebug());113 }114 {115 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("OverlayBootstrap"));116 logger->setLevel(log4cxx::Level::getDebug());117 }118 {119 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BootstrapManager"));120 logger->setLevel(log4cxx::Level::getDebug());121 }122 {123 127 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("Chord")); 124 128 logger->setLevel(log4cxx::Level::getInfo());
Note:
See TracChangeset
for help on using the changeset viewer.