IBR-DTNSuite
0.8
|
#include <FileBundle.h>
Public Member Functions | |
FileBundle (const dtn::data::EID &destination, const ibrcommon::File &file) | |
virtual | ~FileBundle () |
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.
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.
destination | The destination EID for the bundle. |
file | The 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().
dtn::api::FileBundle::~FileBundle | ( | ) | [virtual] |
Destructor of the FileBundle object.
Definition at line 27 of file FileBundle.cpp.