An Overlay-based
Virtual Network Substrate
SpoVNet

Ignore:
Timestamp:
Jul 14, 2009, 12:28:40 PM (10 years ago)
Author:
stud-florian
Message:

The attribute stuff in BluetoothSdp? should be working now.

File:
1 edited

Legend:

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

    r4904 r4905  
    305305
    306306                address = (ii + i)->bdaddr;
     307
     308                logging_info("Peer found.")
     309
    307310                // TODO: sdp_search can be very slow, fork it!
    308311                sdp_search(address);
     
    334337
    335338        // 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];
    341340
    342341        // connect to the SDP server running on the remote machine
     
    374373                                sdp_list_free(proto_list, 0);
    375374
    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);
    382384                                //TODO: callback here + extract info's and stuff
    383385                        }
Note: See TracChangeset for help on using the changeset viewer.