- Timestamp:
- Jul 14, 2009, 12:28:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
r4904 r4905 305 305 306 306 address = (ii + i)->bdaddr; 307 308 logging_info("Peer found.") 309 307 310 // TODO: sdp_search can be very slow, fork it! 308 311 sdp_search(address); … … 334 337 335 338 // prepare the buffers for the attributes 336 string name, info1, info2, info3; 337 name.reserve(256); 338 info1.reserve(256); 339 info2.reserve(256); 340 info3.reserve(256); 339 char name[256], info1[256], info2[256], info3[256]; 341 340 342 341 // connect to the SDP server running on the remote machine … … 374 373 sdp_list_free(proto_list, 0); 375 374 376 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_NAME, (char*)name.data(), name.size()); 377 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO1, (char*)info1.data(), info1.size()); 378 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO2, (char*)info2.data(), info2.size()); 379 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO3, (char*)info3.data(), info3.size()); 380 381 std::cout << "Remote peer name is: " << name; 375 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_NAME, (char*)&name, 256); 376 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO1, (char*)&name, 256); 377 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO2, (char*)&name, 256); 378 sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO3, (char*)&name, 256); 379 380 logging_info("Remote peer name is: " << name); 381 logging_info("Remote peer info1 is: " << info1); 382 logging_info("Remote peer info2 is: " << info2); 383 logging_info("Remote peer info3 is: " << info3); 382 384 //TODO: callback here + extract info's and stuff 383 385 }
Note:
See TracChangeset
for help on using the changeset viewer.