Changeset 4900 for source/ariba/utility


Ignore:
Timestamp:
Jul 14, 2009, 11:36:48 AM (15 years ago)
Author:
stud-florian
Message:

Added attribute things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp

    r4894 r4900  
    344344        string name, info1, info2, info3;
    345345        name.reserve(256);
     346        info1.reserve(256);
     347        info2.reserve(256);
     348        info3.reserve(256);
    346349
    347350        // connect to the SDP server running on the remote machine
     
    379382                                sdp_list_free(proto_list, 0);
    380383
     384                                sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_NAME, (char*)name.data(), name.size());
     385                                sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO1, (char*)info1.data(), info1.size());
     386                                sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO2, (char*)info2.data(), info2.size());
     387                                sdp_get_string_attr(rec, SDP_ATTR_SPOVNET_INFO3, (char*)info3.data(), info3.size());
     388
     389                                std::cout << "Remote peer name is: " << name;
    381390                                //TODO: callback here + extract info's and stuff
    382391                        }
Note: See TracChangeset for help on using the changeset viewer.