IBR-DTNSuite 0.6

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

Detailed Description

Definition at line 89 of file HTTPConvergenceLayer.h.


Constructor & Destructor Documentation

dtn::net::DownloadThread::DownloadThread ( ibrcommon::iobuffer buf)

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 225 of file HTTPConvergenceLayer.cpp.

dtn::net::DownloadThread::~DownloadThread ( ) [virtual]

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

Definition at line 234 of file HTTPConvergenceLayer.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:


Member Function Documentation

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 246 of file HTTPConvergenceLayer.cpp.

References IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::net::BundleReceivedEvent::raise(), 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: