IBR-DTN  1.0.0
dtn::net::DownloadThread Class Reference

#include <HTTPConvergenceLayer.h>

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

Public Member Functions

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

Protected Member Functions

void run () throw ()
 
void __cancellation () throw ()
 

Detailed Description

Definition at line 104 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 125 of file HTTPConvergenceLayer.cpp.

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

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

Definition at line 134 of file HTTPConvergenceLayer.cpp.

Member Function Documentation

void dtn::net::DownloadThread::__cancellation ( )
throw (
)
protected

Definition at line 178 of file HTTPConvergenceLayer.cpp.

void dtn::net::DownloadThread::run ( void  )
throw (
)
protected

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.

Definition at line 146 of file HTTPConvergenceLayer.cpp.

References dtn::core::Node::CONN_HTTP, dtn::core::BundleCore::filter(), dtn::core::BundleCore::getInstance(), dtn::core::BundleFilter::INPUT, dtn::net::BundleReceivedEvent::raise(), dtn::core::FilterContext::setBundle(), and dtn::core::FilterContext::setProtocol().

Here is the call graph for this function:


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