IBR-DTNSuite  0.8
dtn::net::DownloadThread Class Reference

#include <HTTPConvergenceLayer.h>

Inheritance diagram for dtn::net::DownloadThread:
Collaboration diagram for dtn::net::DownloadThread:

List of all members.

Public Member Functions

 DownloadThread (ibrcommon::iobuffer &buf)
virtual ~DownloadThread ()

Protected Member Functions

void run ()
void __cancellation ()

Detailed Description

Definition at line 89 of file HTTPConvergenceLayer.h.


Constructor & Destructor Documentation

DownloadThread constructor, connects the istream _stream variable to the iobuffer and the DownloadThread::run() method is reading and evaluating the stream.

Parameters:
bufIs an iobuffer where received data is written.

Definition at line 227 of file HTTPConvergenceLayer.cpp.

DownloadThread destructor, calls the join() method to stop the joinable thread.

Definition at line 236 of file HTTPConvergenceLayer.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files: