oasys::Bluetooth Struct Reference

#include <Bluetooth.h>

List of all members.


Detailed Description

Definition at line 22 of file Bluetooth.h.

Static Public Member Functions

static char * batostr (const bdaddr_t *ba, char *str, size_t strsize=18)
static bdaddr_t * strtoba (const char *str, bdaddr_t *addr)
static void baswap (bdaddr_t *dst, const bdaddr_t *src)
static int hci_devid (const char *hcidev, const char *log=NULL)
 System call wrappers (for logging).
static int hci_inquiry (int dev_id, int len, int nrsp, const uint8_t *lap, inquiry_info **ii, long flags, const char *log=NULL)
 System call wrappers (for logging).
static int hci_open_dev (int dev_id, const char *log=NULL)
 System call wrappers (for logging).
static int hci_close_dev (int dd, const char *log=NULL)
 System call wrappers (for logging).
static int hci_read_remote_name (int dd, const bdaddr_t *bdaddr, int len, char *name, int to, const char *log=NULL)
 System call wrappers (for logging).
static void hci_get_bdaddr (const char *hcidev, bdaddr_t *bdaddr, const char *log=NULL)
 System call wrappers (for logging).
static int hci_dev_up (int dd, const char *hcidev, const char *log=NULL)
 System call wrappers (for logging).


Member Function Documentation

int oasys::Bluetooth::hci_devid ( const char *  hcidev,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 24 of file Bluetooth.cc.

References oasys::LOG_DEBUG, and oasys::logf().

Referenced by hci_get_bdaddr(), and oasys::BluetoothInquiry::set_hci_device_name().

int oasys::Bluetooth::hci_inquiry ( int  dev_id,
int  len,
int  nrsp,
const uint8_t *  lap,
inquiry_info **  ii,
long  flags,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 35 of file Bluetooth.cc.

References oasys::LOG_DEBUG, and oasys::logf().

Referenced by oasys::BluetoothInquiry::inquire().

int oasys::Bluetooth::hci_open_dev ( int  dev_id,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 49 of file Bluetooth.cc.

References fd, oasys::LOG_DEBUG, and oasys::logf().

Referenced by oasys::BluetoothInquiry::next().

int oasys::Bluetooth::hci_close_dev ( int  dd,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 60 of file Bluetooth.cc.

References oasys::LOG_DEBUG, and oasys::logf().

int oasys::Bluetooth::hci_read_remote_name ( int  dd,
const bdaddr_t *  bdaddr,
int  len,
char *  name,
int  to,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 71 of file Bluetooth.cc.

References baswap(), batostr(), oasys::LOG_DEBUG, and oasys::logf().

Referenced by oasys::BluetoothInquiry::next().

void oasys::Bluetooth::hci_get_bdaddr ( const char *  hcidev,
bdaddr_t *  bdaddr,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 88 of file Bluetooth.cc.

References fd, hci_dev_up(), hci_devid(), oasys::LOG_DEBUG, oasys::LOG_ERR, and oasys::logf().

Referenced by dtn::BluetoothConvergenceLayer::init_link(), and dtn::BluetoothConvergenceLayer::interface_up().

int oasys::Bluetooth::hci_dev_up ( int  dd,
const char *  hcidev,
const char *  log = NULL 
) [static]

System call wrappers (for logging).

Definition at line 128 of file Bluetooth.cc.

References errno, oasys::LOG_ERR, and oasys::logf().

Referenced by hci_get_bdaddr().

char * oasys::Bluetooth::batostr ( const bdaddr_t *  ba,
char *  str,
size_t  strsize = 18 
) [static]

Definition at line 151 of file Bluetooth.cc.

Referenced by dtn::BluetoothConvergenceLayer::ConnectionManager::addListener(), oasys::BluetoothSocket::bind(), oasys::BluetoothSocket::connect(), dtn::BluetoothConvergenceLayer::Connection::connect(), dtn::BluetoothConvergenceLayer::Connection::Connection(), dtn::BluetoothConvergenceLayer::ConnectionManager::connection(), dtn::BluetoothConvergenceLayer::dump_interface(), dtn::BluetoothConvergenceLayer::dump_link(), hci_read_remote_name(), dtn::BluetoothConvergenceLayer::init_link(), dtn::BluetoothConvergenceLayer::ConnectionManager::listener(), oasys::BluetoothInquiry::next(), oasys::RFCOMMServerThread::rc_bind(), oasys::RFCOMMClient::rc_connect(), dtn::BluetoothConvergenceLayer::Connection::recv_bundle(), oasys::BluetoothServerThread::run(), dtn::BluetoothConvergenceLayer::NeighborDiscovery::send_announce(), and dtn::BluetoothConvergenceLayer::Connection::send_announce().

bdaddr_t * oasys::Bluetooth::strtoba ( const char *  str,
bdaddr_t *  addr 
) [static]

Definition at line 167 of file Bluetooth.cc.

References baswap().

Referenced by dtn::BluetoothConvergenceLayer::parse_nexthop(), and oasys::BdAddrOpt::set().

void oasys::Bluetooth::baswap ( bdaddr_t *  dst,
const bdaddr_t *  src 
) [static]

Definition at line 189 of file Bluetooth.cc.

Referenced by hci_read_remote_name(), and strtoba().


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