#include <source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h>
Inherits ariba::utility::BootstrapModule.
Public Member Functions | |
BluetoothSdp (BootstrapInformationCallback *_callback, string info) | |
virtual | ~BluetoothSdp () |
virtual void | start () |
virtual void | stop () |
virtual string | getName () |
virtual string | getInformation () |
virtual bool | isFunctional () |
virtual void | publishService (string name, string info1, string info2, string info3) |
virtual void | revokeService (string name) |
Static Public Attributes | |
static OverlayBootstrap * | CONNECTION_CHECKER = NULL |
Private Member Functions | |
use_logging_h (BluetoothSdp) | |
void | bt_scan () |
void | sdp_search (bdaddr_t target, string devicename) |
string | ba2string (bdaddr_t *ba) |
string | ba2name (bdaddr_t *ba, int sock) |
bool | haveConnections () |
Private Attributes | |
sdp_session_t * | sdp_session_ |
uint8_t | channel_ |
boost::asio::io_service | io_service_ |
boost::asio::deadline_timer | scan_timer_ |
boost::thread | t_ |
Definition at line 77 of file BluetoothSdp.h.
ariba::utility::BluetoothSdp::BluetoothSdp | ( | BootstrapInformationCallback * | _callback, | |
string | info | |||
) |
Definition at line 74 of file BluetoothSdp.cpp.
References channel_.
ariba::utility::BluetoothSdp::~BluetoothSdp | ( | ) | [virtual] |
Definition at line 85 of file BluetoothSdp.cpp.
string ariba::utility::BluetoothSdp::ba2name | ( | bdaddr_t * | ba, | |
int | sock | |||
) | [private] |
Definition at line 413 of file BluetoothSdp.cpp.
Referenced by bt_scan().
string ariba::utility::BluetoothSdp::ba2string | ( | bdaddr_t * | ba | ) | [private] |
Definition at line 403 of file BluetoothSdp.cpp.
Referenced by bt_scan(), and sdp_search().
void ariba::utility::BluetoothSdp::bt_scan | ( | ) | [private] |
Definition at line 260 of file BluetoothSdp.cpp.
References ba2name(), ba2string(), haveConnections(), logging_debug, logging_error, scan_timer_, and sdp_search().
Referenced by start().
string ariba::utility::BluetoothSdp::getInformation | ( | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 92 of file BluetoothSdp.cpp.
string ariba::utility::BluetoothSdp::getName | ( | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 88 of file BluetoothSdp.cpp.
bool ariba::utility::BluetoothSdp::haveConnections | ( | ) | [private] |
Definition at line 425 of file BluetoothSdp.cpp.
References CONNECTION_CHECKER, and ariba::overlay::OverlayBootstrap::haveOverlayConnections().
Referenced by bt_scan().
bool ariba::utility::BluetoothSdp::isFunctional | ( | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 96 of file BluetoothSdp.cpp.
void ariba::utility::BluetoothSdp::publishService | ( | string | name, | |
string | info1, | |||
string | info2, | |||
string | info3 | |||
) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 134 of file BluetoothSdp.cpp.
References ariba::utility::bd_addr_any, ariba::utility::bd_addr_local, channel_, logging_debug, logging_error, SDP_ATTR_SPOVNET_INFO1, SDP_ATTR_SPOVNET_INFO2, SDP_ATTR_SPOVNET_INFO3, SDP_ATTR_SPOVNET_NAME, sdp_session_, service_name, service_prov, svc_dsc, and svc_uuid_int.
void ariba::utility::BluetoothSdp::revokeService | ( | string | name | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 249 of file BluetoothSdp.cpp.
References logging_debug, and sdp_session_.
void ariba::utility::BluetoothSdp::sdp_search | ( | bdaddr_t | target, | |
string | devicename | |||
) | [private] |
Definition at line 324 of file BluetoothSdp.cpp.
References ba2string(), ariba::utility::bd_addr_any, ariba::utility::BootstrapModule::callback, logging_debug, logging_error, logging_info, ariba::utility::BootstrapInformationCallback::onBootstrapServiceFound(), SDP_ATTR_SPOVNET_INFO1, SDP_ATTR_SPOVNET_INFO2, SDP_ATTR_SPOVNET_INFO3, SDP_ATTR_SPOVNET_NAME, status, and svc_uuid_int.
Referenced by bt_scan().
void ariba::utility::BluetoothSdp::start | ( | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 104 of file BluetoothSdp.cpp.
References bt_scan(), io_service_, and t_.
void ariba::utility::BluetoothSdp::stop | ( | ) | [virtual] |
Implements ariba::utility::BootstrapModule.
Definition at line 117 of file BluetoothSdp.cpp.
References io_service_, sdp_session_, and t_.
ariba::utility::BluetoothSdp::use_logging_h | ( | BluetoothSdp | ) | [private] |
uint8_t ariba::utility::BluetoothSdp::channel_ [private] |
Definition at line 103 of file BluetoothSdp.h.
Referenced by BluetoothSdp(), and publishService().
OverlayBootstrap * ariba::utility::BluetoothSdp::CONNECTION_CHECKER = NULL [static] |
Definition at line 80 of file BluetoothSdp.h.
Referenced by haveConnections().
boost::asio::io_service ariba::utility::BluetoothSdp::io_service_ [private] |
Definition at line 108 of file BluetoothSdp.h.
boost::asio::deadline_timer ariba::utility::BluetoothSdp::scan_timer_ [private] |
Definition at line 109 of file BluetoothSdp.h.
Referenced by bt_scan().
sdp_session_t* ariba::utility::BluetoothSdp::sdp_session_ [private] |
Definition at line 102 of file BluetoothSdp.h.
Referenced by publishService(), revokeService(), and stop().
boost::thread ariba::utility::BluetoothSdp::t_ [private] |
Definition at line 110 of file BluetoothSdp.h.