#include <BluetoothInquiry.h>
Inheritance diagram for oasys::BluetoothInquiry:
Definition at line 47 of file BluetoothInquiry.h.
Public Member Functions | |
BluetoothInquiry (const char *logbase="/btinquiry") | |
~BluetoothInquiry () | |
char * | hci_device_name () |
void | set_hci_device_name (char *) |
int | num_responses () |
number of desired responses to wait for | |
void | set_numresponses (int) |
int | length () |
number of 1.28s intervals to scan | |
void | set_length (int) |
uint8_t * | lap () |
lower address part ... see p. 64, vol 1, part B of Bluetooth 2.0 | |
void | set_lap (uint8_t *) |
inquiry_info * | info () |
void | set_info (inquiry_info *) |
long | flags () |
void | set_flags (long) |
int | inquire () |
int | timeout () |
void | set_timeout (int) |
int | first (BluetoothInquiryInfo &bti) |
int | next (BluetoothInquiryInfo &bti) |
Protected Member Functions | |
void | reset () |
Protected Attributes | |
char * | hci_device_name_ |
int | hci_dev_ |
int | num_responses_ |
int | num_responses_i_ |
int | length_ |
uint8_t * | lap_ |
inquiry_info * | info_ |
long | flags_ |
int | timeout_ |
int | fd_ |
int | pos_ |
oasys::BluetoothInquiry::BluetoothInquiry | ( | const char * | logbase = "/btinquiry" |
) |
Definition at line 21 of file BluetoothInquiry.cc.
References hci_device_name_, and set_hci_device_name().
oasys::BluetoothInquiry::~BluetoothInquiry | ( | ) |
char * oasys::BluetoothInquiry::hci_device_name | ( | ) |
void oasys::BluetoothInquiry::set_hci_device_name | ( | char * | ) |
Definition at line 59 of file BluetoothInquiry.cc.
References hci_dev_, hci_device_name_, oasys::Bluetooth::hci_devid(), and oasys::Logger::logpath_.
Referenced by BluetoothInquiry().
int oasys::BluetoothInquiry::num_responses | ( | ) |
number of desired responses to wait for
Definition at line 71 of file BluetoothInquiry.cc.
References num_responses_.
void oasys::BluetoothInquiry::set_numresponses | ( | int | ) |
int oasys::BluetoothInquiry::length | ( | ) |
number of 1.28s intervals to scan
Definition at line 84 of file BluetoothInquiry.cc.
References length_.
void oasys::BluetoothInquiry::set_length | ( | int | ) |
uint8_t * oasys::BluetoothInquiry::lap | ( | ) |
lower address part ... see p. 64, vol 1, part B of Bluetooth 2.0
Definition at line 97 of file BluetoothInquiry.cc.
References lap_.
void oasys::BluetoothInquiry::set_lap | ( | uint8_t * | ) |
inquiry_info * oasys::BluetoothInquiry::info | ( | ) |
void oasys::BluetoothInquiry::set_info | ( | inquiry_info * | ) |
long oasys::BluetoothInquiry::flags | ( | ) |
void oasys::BluetoothInquiry::set_flags | ( | long | ) |
int oasys::BluetoothInquiry::inquire | ( | ) |
Definition at line 133 of file BluetoothInquiry.cc.
References flags_, hci_dev_, oasys::Bluetooth::hci_inquiry(), info_, lap_, length_, log_info, oasys::Logger::logpath_, num_responses_, and num_responses_i_.
Referenced by dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().
int oasys::BluetoothInquiry::timeout | ( | ) |
void oasys::BluetoothInquiry::set_timeout | ( | int | ) |
int oasys::BluetoothInquiry::first | ( | BluetoothInquiryInfo & | bti | ) |
int oasys::BluetoothInquiry::next | ( | BluetoothInquiryInfo & | bti | ) |
Definition at line 181 of file BluetoothInquiry.cc.
References oasys::BluetoothInquiryInfo::addr_, ASSERT, oasys::Bluetooth::batostr(), fd_, hci_dev_, oasys::Bluetooth::hci_open_dev(), oasys::Bluetooth::hci_read_remote_name(), info_, log_debug, log_err, oasys::Logger::logpath_, oasys::BluetoothInquiryInfo::name_, oasys::BluetoothInquiryInfo::name_len_, num_responses_i_, pos_, and timeout_.
Referenced by first(), and dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().
void oasys::BluetoothInquiry::reset | ( | ) | [protected] |
Definition at line 163 of file BluetoothInquiry.cc.
References fd_, flags_, and pos_.
Referenced by first(), and dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().
char* oasys::BluetoothInquiry::hci_device_name_ [protected] |
Definition at line 97 of file BluetoothInquiry.h.
Referenced by BluetoothInquiry(), hci_device_name(), set_hci_device_name(), and ~BluetoothInquiry().
int oasys::BluetoothInquiry::hci_dev_ [protected] |
Definition at line 98 of file BluetoothInquiry.h.
Referenced by inquire(), next(), and set_hci_device_name().
int oasys::BluetoothInquiry::num_responses_ [protected] |
Definition at line 99 of file BluetoothInquiry.h.
Referenced by inquire(), num_responses(), and set_numresponses().
int oasys::BluetoothInquiry::num_responses_i_ [protected] |
int oasys::BluetoothInquiry::length_ [protected] |
Definition at line 100 of file BluetoothInquiry.h.
Referenced by inquire(), length(), and set_length().
uint8_t* oasys::BluetoothInquiry::lap_ [protected] |
inquiry_info* oasys::BluetoothInquiry::info_ [protected] |
Definition at line 102 of file BluetoothInquiry.h.
Referenced by info(), inquire(), next(), set_info(), and ~BluetoothInquiry().
long oasys::BluetoothInquiry::flags_ [protected] |
Definition at line 103 of file BluetoothInquiry.h.
Referenced by flags(), inquire(), reset(), and set_flags().
int oasys::BluetoothInquiry::timeout_ [protected] |
Definition at line 104 of file BluetoothInquiry.h.
Referenced by next(), set_timeout(), and timeout().
int oasys::BluetoothInquiry::fd_ [protected] |
Definition at line 106 of file BluetoothInquiry.h.
Referenced by next(), reset(), and ~BluetoothInquiry().
int oasys::BluetoothInquiry::pos_ [protected] |