Changeset 6919 for source/ariba/utility/bootstrap/modules
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- Location:
- source/ariba/utility/bootstrap/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
r5967 r6919 64 64 namespace utility { 65 65 66 static bdaddr_t bd_addr_any = {{0, 0, 0, 0, 0, 0}}; 67 static bdaddr_t bd_addr_local = {{0, 0, 0, 0xff, 0xff, 0xff}}; 68 66 69 use_logging_cpp(BluetoothSdp); 67 70 OverlayBootstrap* BluetoothSdp::CONNECTION_CHECKER = NULL; … … 216 219 // connect to the local SDP server, register the service record 217 220 if( sdp_session_ == NULL ){ 218 sdp_session_ = sdp_connect( BDADDR_ANY, BDADDR_LOCAL, SDP_RETRY_IF_BUSY);221 sdp_session_ = sdp_connect(&bd_addr_any, &bd_addr_local, SDP_RETRY_IF_BUSY); 219 222 } 220 223 … … 275 278 276 279 bdaddr_t address; 277 uint8_t channel;280 // uint8_t channel; 278 281 279 282 dev_id = hci_get_route(NULL); … … 339 342 char name[256], info1[256], info2[256], info3[256]; 340 343 341 session = sdp_connect( BDADDR_ANY, &target, SDP_RETRY_IF_BUSY);344 session = sdp_connect(&bd_addr_any, &target, SDP_RETRY_IF_BUSY); 342 345 343 346 if (session == NULL) { … … 401 404 * Returns a string holding the bt adress in human readable form. 402 405 */ 403 char addr[32] = { 0 };404 406 char str[32] = { 0 }; 405 407 ba2str(ba, str); -
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r5973 r6919 197 197 public: 198 198 udp_server(boost::asio::io_service& io_service, ServiceList* _services, boost::mutex* _servicesmutex) 199 : s ervices(_services), servicesmutex(_servicesmutex),200 socket_v4(io_service), socket_v6(io_service) {199 : socket_v4(io_service), socket_v6(io_service), 200 services(_services), servicesmutex(_servicesmutex) { 201 201 202 202 if( open4() ) start_receive_4(); … … 350 350 351 351 { // insert new found service 352 boost::mutex::scoped_lock ( *servicesmutex );352 boost::mutex::scoped_lock lock( *servicesmutex ); 353 353 354 354 ServiceList::iterator it = services->find( msg.getName() );
Note:
See TracChangeset
for help on using the changeset viewer.