oasys::BluetoothServiceDiscoveryClient Class Reference

#include <BluetoothSDP.h>

Inheritance diagram for oasys::BluetoothServiceDiscoveryClient:

oasys::Logger List of all members.

Detailed Description

Connect to remote Bluetooth device and query its SDP server for DTN service.

Definition at line 98 of file BluetoothSDP.h.

Public Member Functions

 BluetoothServiceDiscoveryClient (const char *logpath="/dtn/bt/sdp/client")
 ~BluetoothServiceDiscoveryClient ()
bool is_dtn_router (bdaddr_t addr)
void set_local_addr (bdaddr_t &addr)
void get_local_addr (bdaddr_t &addr)

Protected Member Functions

sdp_record_t * get_next_service_record ()
bool connect ()
bool close ()
sdp_list_t * do_search ()

Protected Attributes

bdaddr_t remote_addr_
bdaddr_t local_addr_
SDPListHeadresponse_list_
sdp_session_t * session_handle_


Constructor & Destructor Documentation

oasys::BluetoothServiceDiscoveryClient::BluetoothServiceDiscoveryClient ( const char *  logpath = "/dtn/bt/sdp/client"  ) 

Definition at line 21 of file BluetoothSDP.cc.

References BDADDR_ANY, and local_addr_.

oasys::BluetoothServiceDiscoveryClient::~BluetoothServiceDiscoveryClient (  ) 

Definition at line 30 of file BluetoothSDP.cc.

References close(), and response_list_.


Member Function Documentation

bool oasys::BluetoothServiceDiscoveryClient::is_dtn_router ( bdaddr_t  addr  ) 

Definition at line 166 of file BluetoothSDP.cc.

References errno, get_next_service_record(), log_debug, and remote_addr_.

Referenced by dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().

void oasys::BluetoothServiceDiscoveryClient::set_local_addr ( bdaddr_t &  addr  )  [inline]

Definition at line 106 of file BluetoothSDP.h.

References local_addr_.

Referenced by dtn::BluetoothConvergenceLayer::NeighborDiscovery::run().

void oasys::BluetoothServiceDiscoveryClient::get_local_addr ( bdaddr_t &  addr  )  [inline]

Definition at line 110 of file BluetoothSDP.h.

References local_addr_.

sdp_record_t * oasys::BluetoothServiceDiscoveryClient::get_next_service_record (  )  [protected]

Definition at line 135 of file BluetoothSDP.cc.

References do_search(), oasys::SDPListHead::next(), and response_list_.

Referenced by is_dtn_router().

bool oasys::BluetoothServiceDiscoveryClient::connect (  )  [protected]

Definition at line 44 of file BluetoothSDP.cc.

References errno, local_addr_, log_debug, remote_addr_, and session_handle_.

Referenced by do_search().

bool oasys::BluetoothServiceDiscoveryClient::close (  )  [protected]

Definition at line 66 of file BluetoothSDP.cc.

References session_handle_.

Referenced by ~BluetoothServiceDiscoveryClient().

sdp_list_t * oasys::BluetoothServiceDiscoveryClient::do_search (  )  [protected]

Definition at line 78 of file BluetoothSDP.cc.

References connect(), errno, log_debug, OASYS_BLUETOOTH_SDP_UUID, and session_handle_.

Referenced by get_next_service_record().


Member Data Documentation

bdaddr_t oasys::BluetoothServiceDiscoveryClient::remote_addr_ [protected]

Definition at line 126 of file BluetoothSDP.h.

Referenced by connect(), and is_dtn_router().

bdaddr_t oasys::BluetoothServiceDiscoveryClient::local_addr_ [protected]

Definition at line 127 of file BluetoothSDP.h.

Referenced by BluetoothServiceDiscoveryClient(), connect(), get_local_addr(), and set_local_addr().

SDPListHead* oasys::BluetoothServiceDiscoveryClient::response_list_ [protected]

Definition at line 128 of file BluetoothSDP.h.

Referenced by get_next_service_record(), and ~BluetoothServiceDiscoveryClient().

sdp_session_t* oasys::BluetoothServiceDiscoveryClient::session_handle_ [protected]

Definition at line 129 of file BluetoothSDP.h.

Referenced by close(), connect(), and do_search().


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