An Overlay-based
Virtual Network Substrate
SpoVNet

Ignore:
Timestamp:
Jul 13, 2009, 5:41:44 PM (10 years ago)
Author:
Christoph Mayer
Message:

bluetooth zeugs leicht gefixt

File:
1 edited

Legend:

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

    r4870 r4879  
    4343// Attribute descriptors for SDP
    4444// base was chosen randomly
    45 #define SDP_SPOVNET_BASE                0x4000
     45#define SDP_SPOVNET_BASE                        0x4000
    4646#define SDP_ATTR_SPOVNET_NAME           0x0000 + SDP_SPOVNET_BASE
    4747#define SDP_ATTR_SPOVNET_INFO1          0x0001 + SDP_SPOVNET_BASE
     
    133133         */
    134134
    135         logging_info("Registering SDP service.\n");
     135        logging_info("Registering SDP service");
    136136
    137137        uint8_t rfcomm_channel = channel_;
     
    239239
    240240        if (sdp_session_ == 0) {
    241                 std::cout
    242                 << "Something is wrong with your SDP server, nothing registered.";
     241                logging_error( "Something is wrong with your SDP server, nothing registered" );
    243242        } else {
    244243                sdp_record_register(sdp_session_, &record, 0);
     
    260259#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
    261260
    262         logging_info("Unregistering SDP service.\n");
     261        logging_info("Unregistering SDP service");
    263262        sdp_close(sdp_session_);
    264263
     
    276275         */
    277276
    278         logging_info("Scanning for peers.\n");
     277        logging_info("Scanning for peers");
    279278
    280279        inquiry_info *ii = NULL;
     
    293292        sock = hci_open_dev(dev_id);
    294293        if (dev_id < 0 || sock < 0) {
    295                 perror("opening socket");
     294                logging_error("opening socket");
    296295                exit(1);
    297296        }
     
    304303        num_rsp = hci_inquiry(dev_id, len, max_rsp, NULL, &ii, flags);
    305304        if (num_rsp < 0)
    306         perror("hci_inquiry");
     305                logging_error("hci_inquiry");
    307306
    308307        for (i = 0; i < num_rsp; i++) {
     
    324323        close(sock);
    325324
    326         logging_info("Next scan in 20 seconds.\n");
     325        logging_info("Next scan in 20 seconds");
    327326
    328327        scan_timer_.expires_from_now(boost::posix_time::seconds(20));
    329328        scan_timer_.async_wait(boost::bind(&BluetoothSdp::bt_scan, this));
    330 
    331 
    332329}
    333330
     
    399396#endif // HAVE_BLUETOOTH_BLUETOOTH_H
    400397
    401 }
    402 } //namespace ariba, utility
     398}} //namespace ariba, utility
Note: See TracChangeset for help on using the changeset viewer.