IBR-DTNSuite
0.12
|
#include <LOWPANConnection.h>
Public Member Functions | |
LOWPANConnection (const ibrcommon::vaddress &_address, LOWPANConvergenceLayer &cl) | |
virtual | ~LOWPANConnection () |
ibrcommon::lowpanstream & | getStream () |
void | run () throw () |
void | setup () throw () |
void | finally () throw () |
void | __cancellation () throw () |
Public Member Functions inherited from ibrcommon::DetachedThread | |
virtual | ~DetachedThread ()=0 |
void | start (int priority=0) throw (ThreadException) |
void | stop () throw (ThreadException) |
Public Attributes | |
const ibrcommon::vaddress | _address |
LOWPANConnectionSender | _sender |
Additional Inherited Members | |
Protected Member Functions inherited from ibrcommon::DetachedThread | |
DetachedThread (size_t size=DEFAULT_STACKSIZE) | |
Static Protected Member Functions inherited from ibrcommon::Thread | |
static size_t | getNumberOfProcessors () |
static void | yield (void) |
static void | sleep (time_t timeout) |
static void | concurrency (int level) |
static bool | equal (pthread_t thread1, pthread_t thread2) |
static void * | __execute__ (void *obj) throw () |
Definition at line 56 of file LOWPANConnection.h.
dtn::net::LOWPANConnection::LOWPANConnection | ( | const ibrcommon::vaddress & | _address, |
LOWPANConvergenceLayer & | cl | ||
) |
LOWPANConnection constructor
_address | IEEE 802.15.4 short address to identfy the connection |
LOWPANConvergenceLayer | reference |
Definition at line 47 of file LOWPANConnection.cpp.
|
virtual |
Definition at line 52 of file LOWPANConnection.cpp.
|
virtual |
Implements ibrcommon::Thread.
Definition at line 105 of file LOWPANConnection.cpp.
References _sender, and ibrcommon::JoinableThread::stop().
|
virtual |
This method is called when the run() method finishes.
Reimplemented from ibrcommon::Thread.
Definition at line 66 of file LOWPANConnection.cpp.
References _sender, ibrcommon::JoinableThread::join(), dtn::net::LOWPANConvergenceLayer::remove(), and ibrcommon::JoinableThread::stop().
ibrcommon::lowpanstream & dtn::net::LOWPANConnection::getStream | ( | ) |
Getting the lowpanstream connected with the LOWPANConnection
Definition at line 56 of file LOWPANConnection.cpp.
Referenced by dtn::net::LOWPANConvergenceLayer::componentRun().
|
virtual |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 75 of file LOWPANConnection.cpp.
References _address, ibrcommon::vaddress::address(), dtn::core::BundleCore::getInstance(), IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, dtn::net::BundleReceivedEvent::raise(), ibrcommon::vaddress::service(), and ibrcommon::Exception::what().
|
virtual |
This method is called before the run.
Reimplemented from ibrcommon::Thread.
Definition at line 61 of file LOWPANConnection.cpp.
References _sender, and ibrcommon::JoinableThread::start().
const ibrcommon::vaddress dtn::net::LOWPANConnection::_address |
IEEE 802.15.4 short address of the node this connection handles data for.
Definition at line 71 of file LOWPANConnection.h.
Referenced by run().
LOWPANConnectionSender dtn::net::LOWPANConnection::_sender |
Instance of the LOWPANConnectionSender
Definition at line 87 of file LOWPANConnection.h.
Referenced by __cancellation(), finally(), dtn::net::LOWPANConvergenceLayer::queue(), and setup().