IBR-DTNSuite
0.8
|
#include <LOWPANConnection.h>
Public Member Functions | |
LOWPANConnection (unsigned short _address, LOWPANConvergenceLayer &cl) | |
virtual | ~LOWPANConnection () |
ibrcommon::lowpanstream & | getStream () |
void | run () |
void | setup () |
void | finally () |
void | __cancellation () |
Public Attributes | |
unsigned short | _address |
LOWPANConnectionSender | _sender |
Definition at line 35 of file LOWPANConnection.h.
dtn::net::LOWPANConnection::LOWPANConnection | ( | unsigned short | _address, |
LOWPANConvergenceLayer & | cl | ||
) |
LOWPANConnection constructor
_address | IEEE 802.15.4 short address to identfy the connection |
LOWPANConvergenceLayer | reference |
Definition at line 30 of file LOWPANConnection.cpp.
dtn::net::LOWPANConnection::~LOWPANConnection | ( | ) | [virtual] |
Definition at line 35 of file LOWPANConnection.cpp.
void dtn::net::LOWPANConnection::__cancellation | ( | ) | [virtual] |
Implements ibrcommon::Thread.
Definition at line 96 of file LOWPANConnection.cpp.
References _sender, and ibrcommon::JoinableThread::stop().
void dtn::net::LOWPANConnection::finally | ( | void | ) | [virtual] |
This method is called when the run() method finishes.
Reimplemented from ibrcommon::Thread.
Definition at line 49 of file LOWPANConnection.cpp.
References _sender, ibrcommon::JoinableThread::join(), dtn::net::LOWPANConvergenceLayer::remove(), and ibrcommon::JoinableThread::stop().
Getting the lowpanstream connected with the LOWPANConnection
Definition at line 39 of file LOWPANConnection.cpp.
Referenced by dtn::net::LOWPANConvergenceLayer::componentRun().
void dtn::net::LOWPANConnection::run | ( | ) | [virtual] |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 58 of file LOWPANConnection.cpp.
References dtn::core::BundleCore::getInstance(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::data::ScopeControlHopLimitBlock::increment(), dtn::net::BundleReceivedEvent::raise(), dtn::core::BundleCore::validate(), and ibrcommon::Exception::what().
void dtn::net::LOWPANConnection::setup | ( | void | ) | [virtual] |
This method is called before the run.
Reimplemented from ibrcommon::Thread.
Definition at line 44 of file LOWPANConnection.cpp.
References _sender, and ibrcommon::JoinableThread::start().
unsigned short dtn::net::LOWPANConnection::_address |
IEEE 802.15.4 short address of the node this connection handles data for.
Definition at line 50 of file LOWPANConnection.h.
Instance of the LOWPANConnectionSender
Definition at line 66 of file LOWPANConnection.h.
Referenced by __cancellation(), finally(), dtn::net::LOWPANConvergenceLayer::queue(), and setup().