IBR-DTNSuite  0.8
dtn::api::FileBundle Class Reference

#include <FileBundle.h>

Inheritance diagram for dtn::api::FileBundle:
Collaboration diagram for dtn::api::FileBundle:

List of all members.

Public Member Functions

 FileBundle (const dtn::data::EID &destination, const ibrcommon::File &file)
virtual ~FileBundle ()

Detailed Description

This class could be used to send whole files through the bundle protocol. The file is not copied before sending and thus it has to be available until the hole bundle is sent to the daemon.

Definition at line 23 of file FileBundle.h.


Constructor & Destructor Documentation

dtn::api::FileBundle::FileBundle ( const dtn::data::EID destination,
const ibrcommon::File file 
)

Constructor of the FileBundle object. It needs a destination and a file object which points to an existing file.

Parameters:
destinationThe destination EID for the bundle.
fileThe file to send.

Definition at line 17 of file FileBundle.cpp.

References dtn::api::Bundle::_b, ibrcommon::BLOB::open(), and dtn::data::Bundle::push_back().

Here is the call graph for this function:

Destructor of the FileBundle object.

Definition at line 27 of file FileBundle.cpp.


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