IBR-DTN
1.0.0
|
#include <HTTPConvergenceLayer.h>
Public Member Functions | |
DownloadThread (ibrcommon::iobuffer &buf) | |
virtual | ~DownloadThread () |
Protected Member Functions | |
void | run () throw () |
void | __cancellation () throw () |
Definition at line 104 of file HTTPConvergenceLayer.h.
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.
buf | Is an iobuffer where received data is written. |
Definition at line 125 of file HTTPConvergenceLayer.cpp.
|
virtual |
DownloadThread destructor, calls the join() method to stop the joinable thread.
Definition at line 134 of file HTTPConvergenceLayer.cpp.
|
protected |
Definition at line 178 of file HTTPConvergenceLayer.cpp.
|
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().