dtn::BluetoothConvergenceLayer::NeighborDiscovery Class Reference

#include <BluetoothConvergenceLayer.h>

Inheritance diagram for dtn::BluetoothConvergenceLayer::NeighborDiscovery:

oasys::BluetoothInquiry oasys::Thread oasys::Logger List of all members.

Detailed Description

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
BluetoothConvergenceLayercl_
Params params_

Friends

class Connection


Constructor & Destructor Documentation

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.


Member Function Documentation

u_int dtn::BluetoothConvergenceLayer::NeighborDiscovery::poll_interval (  )  [inline]

Definition at line 340 of file BluetoothConvergenceLayer.h.

References poll_interval_.

void dtn::BluetoothConvergenceLayer::NeighborDiscovery::poll_interval ( u_int  poll_int  )  [inline]

Definition at line 345 of file BluetoothConvergenceLayer.h.

References poll_interval_.

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


Friends And Related Function Documentation

friend class Connection [friend]

Definition at line 350 of file BluetoothConvergenceLayer.h.


Member Data Documentation

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

BluetoothConvergenceLayer* dtn::BluetoothConvergenceLayer::NeighborDiscovery::cl_ [protected]

Definition at line 356 of file BluetoothConvergenceLayer.h.

Referenced by send_announce().

Params dtn::BluetoothConvergenceLayer::NeighborDiscovery::params_ [protected]

Definition at line 357 of file BluetoothConvergenceLayer.h.

Referenced by run(), and send_announce().


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