#include <BluetoothConvergenceLayer.h>
Inheritance diagram for dtn::BluetoothConvergenceLayer::NeighborDiscovery:
Definition at line 320 of file BluetoothConvergenceLayer.h.
Public Member Functions | |
NeighborDiscovery (BluetoothConvergenceLayer *cl, Params *params, const char *logpath="/dtn/cl/bt/neighbordiscovery") | |
~NeighborDiscovery () | |
u_int | poll_interval () |
void | poll_interval (u_int poll_int) |
Protected Member Functions | |
void | run () |
Derived classes should implement this function which will get called in the new Thread context. | |
void | send_announce (bdaddr_t remote) |
Protected Attributes | |
u_int | poll_interval_ |
seconds between neighbor discovery polling | |
BluetoothConvergenceLayer * | cl_ |
Params | params_ |
Friends | |
class | Connection |
dtn::BluetoothConvergenceLayer::NeighborDiscovery::NeighborDiscovery | ( | BluetoothConvergenceLayer * | cl, | |
Params * | params, | |||
const char * | logpath = "/dtn/cl/bt/neighbordiscovery" | |||
) | [inline] |
Definition at line 324 of file BluetoothConvergenceLayer.h.
References ASSERT, oasys::Logger::logpath(), dtn::BluetoothConvergenceLayer::Params::neighbor_poll_interval_, poll_interval_, and oasys::Logger::set_logpath().
dtn::BluetoothConvergenceLayer::NeighborDiscovery::~NeighborDiscovery | ( | ) | [inline] |
Definition at line 337 of file BluetoothConvergenceLayer.h.
u_int dtn::BluetoothConvergenceLayer::NeighborDiscovery::poll_interval | ( | ) | [inline] |
void dtn::BluetoothConvergenceLayer::NeighborDiscovery::poll_interval | ( | u_int | poll_int | ) | [inline] |
void dtn::BluetoothConvergenceLayer::NeighborDiscovery::run | ( | ) | [protected, virtual] |
Derived classes should implement this function which will get called in the new Thread context.
Implements oasys::Thread.
Definition at line 2022 of file BluetoothConvergenceLayer.cc.
References oasys::BluetoothInquiryInfo::addr_, oasys::BluetoothInquiry::inquire(), oasys::BluetoothServiceDiscoveryClient::is_dtn_router(), dtn::BluetoothConvergenceLayer::Params::local_addr_, log_debug, log_err, log_info, oasys::BluetoothInquiry::next(), params_, poll_interval_, oasys::Random::rand(), oasys::BluetoothInquiry::reset(), send_announce(), oasys::BluetoothServiceDiscoveryClient::set_local_addr(), oasys::Thread::should_stop(), sleep_time, and oasys::BluetoothServiceRegistration::success().
void dtn::BluetoothConvergenceLayer::NeighborDiscovery::send_announce | ( | bdaddr_t | remote | ) | [protected] |
Definition at line 1995 of file BluetoothConvergenceLayer.cc.
References oasys::Bluetooth::batostr(), cl_, dtn::BluetoothConvergenceLayer::ConnectionManager::connection(), dtn::BluetoothConvergenceLayer::connections_, dtn::BundleDaemon::contactmgr(), dtn::ContactManager::find_link_to(), dtn::BundleDaemon::instance(), log_info, params_, dtn::BluetoothConvergenceLayer::Connection::recv_announce(), and dtn::BluetoothConvergenceLayer::Connection::send_announce().
Referenced by run().
friend class Connection [friend] |
Definition at line 350 of file BluetoothConvergenceLayer.h.
u_int dtn::BluetoothConvergenceLayer::NeighborDiscovery::poll_interval_ [protected] |
seconds between neighbor discovery polling
Definition at line 355 of file BluetoothConvergenceLayer.h.
Referenced by NeighborDiscovery(), poll_interval(), and run().
Definition at line 357 of file BluetoothConvergenceLayer.h.
Referenced by run(), and send_announce().