IBR-DTNSuite
0.8
|
#include <HTTPConvergenceLayer.h>
Public Member Functions | |
DownloadThread (ibrcommon::iobuffer &buf) | |
virtual | ~DownloadThread () |
Protected Member Functions | |
void | run () |
void | __cancellation () |
Definition at line 89 of file HTTPConvergenceLayer.h.
DownloadThread constructor, connects the istream _stream variable to the iobuffer and the DownloadThread::run() method is reading and evaluating the stream.
buf | Is an iobuffer where received data is written. |
Definition at line 227 of file HTTPConvergenceLayer.cpp.
dtn::net::DownloadThread::~DownloadThread | ( | ) | [virtual] |
DownloadThread destructor, calls the join() method to stop the joinable thread.
Definition at line 236 of file HTTPConvergenceLayer.cpp.
References ibrcommon::JoinableThread::join().
void dtn::net::DownloadThread::__cancellation | ( | ) | [protected, virtual] |
Implements ibrcommon::Thread.
Definition at line 279 of file HTTPConvergenceLayer.cpp.
void dtn::net::DownloadThread::run | ( | void | ) | [protected, virtual] |
Joinable Thread run method, this thread starts when the componentRun() method is running and connected to the tomcat server. This thread is watching permanent on the istream of the ibrcommon::iobuffer. When a valid bundle is detected a BundleReceivedEvent will be raised.
Implements ibrcommon::Thread.
Definition at line 248 of file HTTPConvergenceLayer.cpp.
References dtn::data::Bundle::getBlock(), dtn::core::BundleCore::getInstance(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::data::ScopeControlHopLimitBlock::increment(), dtn::net::BundleReceivedEvent::raise(), dtn::core::BundleCore::validate(), ibrcommon::Exception::what(), and ibrcommon::Thread::yield().