IBR-DTNSuite
0.12
|
#include <LOWPANConnection.h>
Public Member Functions | |
LOWPANConnectionSender (ibrcommon::lowpanstream &_stream) | |
virtual | ~LOWPANConnectionSender () |
void | queue (const dtn::net::BundleTransfer &job) |
void | run () throw () |
void | __cancellation () throw () |
Public Member Functions inherited from ibrcommon::JoinableThread | |
virtual | ~JoinableThread ()=0 |
void | join (void) throw (ThreadException) |
bool | isRunning (void) |
void | start (int priority=0) throw (ThreadException) |
void | stop () throw () |
Additional Inherited Members | |
Protected Member Functions inherited from ibrcommon::JoinableThread | |
JoinableThread (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 36 of file LOWPANConnection.h.
dtn::net::LOWPANConnectionSender::LOWPANConnectionSender | ( | ibrcommon::lowpanstream & | _stream) |
Definition at line 111 of file LOWPANConnection.cpp.
|
virtual |
Definition at line 116 of file LOWPANConnection.cpp.
|
virtual |
Implements ibrcommon::Thread.
Definition at line 155 of file LOWPANConnection.cpp.
References ibrcommon::Queue< T >::abort().
void dtn::net::LOWPANConnectionSender::queue | ( | const dtn::net::BundleTransfer & | job) |
Queueing a job, originally coming from the DTN core, to work its way down to the CL through the lowpanstream
job | Reference to the job conatining EID and bundle |
Definition at line 120 of file LOWPANConnection.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Queue< T >::push().
Referenced by dtn::net::LOWPANConvergenceLayer::queue().
|
virtual |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 126 of file LOWPANConnection.cpp.
References dtn::net::BundleTransfer::complete(), dtn::storage::BundleStorage::get(), dtn::net::BundleTransfer::getBundle(), dtn::core::BundleCore::getInstance(), ibrcommon::Queue< T >::getnpop(), dtn::core::BundleCore::getStorage(), IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.