IBR-DTNSuite  0.8
BundleStream Class Reference

#include <BundleStream.h>

Inheritance diagram for BundleStream:
Collaboration diagram for BundleStream:

List of all members.

Public Member Functions

 BundleStream (ibrcommon::tcpstream &stream, size_t chunk_size, const std::string &app="stream", const dtn::data::EID &group=dtn::data::EID(), bool wait_seq_zero=false)
virtual ~BundleStream ()
BundleStreamBufrdbuf ()
dtn::api::Bundlebase ()

Protected Member Functions

virtual void received (const dtn::api::Bundle &b)

Detailed Description

Definition at line 96 of file BundleStream.h.


Constructor & Destructor Documentation

BundleStream::BundleStream ( ibrcommon::tcpstream stream,
size_t  chunk_size,
const std::string &  app = "stream",
const dtn::data::EID group = dtn::data::EID(),
bool  wait_seq_zero = false 
)

Definition at line 258 of file dtnstream.cpp.

Definition at line 262 of file dtnstream.cpp.


Member Function Documentation

Definition at line 269 of file dtnstream.cpp.

Referenced by main().

Definition at line 264 of file dtnstream.cpp.

Referenced by main().

void BundleStream::received ( const dtn::api::Bundle b) [protected, virtual]

This method is called on the receipt of a new bundle. If you like to use asynchronous API mode you should overload this method to receive bundles.

Parameters:
bThe received bundle.

Reimplemented from dtn::api::Client.

Definition at line 274 of file dtnstream.cpp.

References BundleStreamBuf::received().

Here is the call graph for this function:


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