#include <BluetoothAnnounce.h>
Definition at line 34 of file BluetoothAnnounce.h.
Public Member Functions | |
void | handle_neighbor_discovered (const std::string &nexthop, const EndpointID &remote_eid) |
When Inquiry/SDP discover a new node, this method is called to initiate Contact with remote peer. | |
size_t | format_advertisement (u_char *, size_t) |
Not used by Bluetooth, since queries and beacons use builtin Inquiry and SDP mechanisms. | |
void | reset_interval () |
virtual | ~BluetoothAnnounce () |
Protected Member Functions | |
BluetoothAnnounce () | |
bool | configure (const std::string &name, ConvergenceLayer *cl, int argc, const char *argv[]) |
Protected Attributes | |
bdaddr_t | cl_addr_ |
u_int8_t | cl_channel_ |
oasys::BluetoothServiceRegistration | sdp_reg_ |
Friends | |
class | Announce |
virtual dtn::BluetoothAnnounce::~BluetoothAnnounce | ( | ) | [inline, virtual] |
Definition at line 52 of file BluetoothAnnounce.h.
dtn::BluetoothAnnounce::BluetoothAnnounce | ( | ) | [protected] |
Definition at line 31 of file BluetoothAnnounce.cc.
References cl_addr_, and oasys::Bluetooth::hci_get_bdaddr().
void dtn::BluetoothAnnounce::handle_neighbor_discovered | ( | const std::string & | nexthop, | |
const EndpointID & | remote_eid | |||
) | [virtual] |
When Inquiry/SDP discover a new node, this method is called to initiate Contact with remote peer.
Implements dtn::Announce.
Definition at line 80 of file BluetoothAnnounce.cc.
References ASSERT, dtn::Announce::cl_, dtn::ContactManager::find_link_to(), dtn::BluetoothConvergenceLayer::new_connection(), dtn::BluetoothConvergenceLayer::new_link_params(), dtn::BluetoothConvergenceLayer::BluetoothLinkParams::remote_addr_, oasys::Thread::start(), oasys::Bluetooth::strtoba(), and dtn::Announce::type().
size_t dtn::BluetoothAnnounce::format_advertisement | ( | u_char * | , | |
size_t | ||||
) | [virtual] |
Not used by Bluetooth, since queries and beacons use builtin Inquiry and SDP mechanisms.
Implements dtn::Announce.
Definition at line 74 of file BluetoothAnnounce.cc.
void dtn::BluetoothAnnounce::reset_interval | ( | ) | [inline] |
Definition at line 50 of file BluetoothAnnounce.h.
References dtn::Announce::data_sent_, and dtnsim::gettimeofday().
Referenced by dtn::BluetoothDiscovery::run().
bool dtn::BluetoothAnnounce::configure | ( | const std::string & | name, | |
ConvergenceLayer * | cl, | |||
int | argc, | |||
const char * | argv[] | |||
) | [protected, virtual] |
Implements dtn::Announce.
Definition at line 38 of file BluetoothAnnounce.cc.
References oasys::OptParser::addopt(), bd2str, dtn::BluetoothConvergenceLayer::BTCL_DEFAULT_CHANNEL, dtn::Announce::cl_, cl_addr_, cl_channel_, dtn::Announce::interval_, dtn::Announce::local_, log_err, dtn::ConvergenceLayer::name(), dtn::Announce::name_, oasys::OptParser::parse(), and dtn::Announce::type_.
friend class Announce [friend] |
Definition at line 55 of file BluetoothAnnounce.h.
bdaddr_t dtn::BluetoothAnnounce::cl_addr_ [protected] |
Definition at line 62 of file BluetoothAnnounce.h.
Referenced by BluetoothAnnounce(), and configure().
u_int8_t dtn::BluetoothAnnounce::cl_channel_ [protected] |
Definition at line 64 of file BluetoothAnnounce.h.