oasys::BluetoothInquiry Class Reference

#include <BluetoothInquiry.h>

Inheritance diagram for oasys::BluetoothInquiry:

oasys::Logger dtn::BluetoothConvergenceLayer::NeighborDiscovery List of all members.

Detailed Description

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_


Constructor & Destructor Documentation

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 (  ) 

Definition at line 38 of file BluetoothInquiry.cc.

References fd_, hci_device_name_, and info_.


Member Function Documentation

char * oasys::BluetoothInquiry::hci_device_name (  ) 

Definition at line 53 of file BluetoothInquiry.cc.

References 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   ) 

Definition at line 77 of file BluetoothInquiry.cc.

References ASSERT, and num_responses_.

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   ) 

Definition at line 90 of file BluetoothInquiry.cc.

References ASSERT, and length_.

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 *   ) 

Definition at line 103 of file BluetoothInquiry.cc.

References lap_.

inquiry_info * oasys::BluetoothInquiry::info (  ) 

Definition at line 109 of file BluetoothInquiry.cc.

References info_.

void oasys::BluetoothInquiry::set_info ( inquiry_info *   ) 

Definition at line 115 of file BluetoothInquiry.cc.

References info_.

long oasys::BluetoothInquiry::flags (  ) 

Definition at line 121 of file BluetoothInquiry.cc.

References flags_.

void oasys::BluetoothInquiry::set_flags ( long   ) 

Definition at line 127 of file BluetoothInquiry.cc.

References flags_.

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 (  ) 

Definition at line 151 of file BluetoothInquiry.cc.

References timeout_.

void oasys::BluetoothInquiry::set_timeout ( int   ) 

Definition at line 157 of file BluetoothInquiry.cc.

References timeout_.

int oasys::BluetoothInquiry::first ( BluetoothInquiryInfo bti  ) 

Definition at line 174 of file BluetoothInquiry.cc.

References next(), and reset().

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().


Member Data Documentation

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]

Definition at line 99 of file BluetoothInquiry.h.

Referenced by inquire(), and next().

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]

Definition at line 101 of file BluetoothInquiry.h.

Referenced by inquire(), lap(), and set_lap().

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]

Definition at line 107 of file BluetoothInquiry.h.

Referenced by next(), and reset().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:05 2006 for DTN Reference Implementation by  doxygen 1.5.1