IBR-DTNSuite
0.8
|
#include <Bundle.h>
Definition at line 18 of file Bundle.cpp.
References dtn::data::PrimaryBlock::_timestamp.
dtn::data::Bundle::~Bundle | ( | ) | [virtual] |
Definition at line 28 of file Bundle.cpp.
References clearBlocks().
size_t dtn::data::Bundle::blockCount | ( | ) | const |
Definition at line 271 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::size().
Referenced by dtn::api::ExtendedApiHandler::run().
void dtn::data::Bundle::clearBlocks | ( | ) |
Definition at line 186 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::clear().
Referenced by dtn::data::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), and ~Bundle().
dtn::data::Block & dtn::data::Bundle::getBlock | ( | int | index | ) |
Definition at line 171 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::get().
Referenced by dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), StreamBundle::clear(), dtn::data::CompressedPayloadBlock::compress(), dtn::utils::Utils::decapsule(), dtn::security::PayloadConfidentialBlock::decryptPayload(), dtn::utils::Utils::encapsule(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::data::CompressedPayloadBlock::extract(), dtn::api::Bundle::getData(), dtn::utils::Clock::getExpireTime(), StreamBundle::getSequenceNumber(), dtn::api::PlainDeserializer::BlockInserter::insert(), dtn::utils::Clock::isExpired(), dtn::data::MetaBundle::MetaBundle(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::ApiServer::processIncomingBundle(), dtn::core::BundleCore::raiseEvent(), dtn::api::ExtendedApiHandler::run(), dtn::net::DownloadThread::run(), dtn::security::PayloadIntegrityBlock::sign(), dtn::storage::SQLiteDatabase::store(), and dtn::api::BundleStreamBuf::underflow().
const dtn::data::Block & dtn::data::Bundle::getBlock | ( | int | index | ) | const |
Definition at line 176 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::get().
T & dtn::data::Bundle::getBlock | ( | ) |
Definition at line 149 of file Bundle.h.
References dtn::data::Bundle::BlockList::get().
const T & dtn::data::Bundle::getBlock | ( | ) | const |
Definition at line 155 of file Bundle.h.
References dtn::data::Bundle::BlockList::get().
const std::list< const T * > dtn::data::Bundle::getBlocks | ( | ) | const |
Definition at line 166 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::getList().
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::decrypt(), dtn::data::Dictionary::Dictionary(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::security::SecurityBlock::isCorrelatorPresent(), dtn::api::PlainSerializer::operator<<(), dtn::core::BundleCore::processBlocks(), dtn::api::ExtendedApiHandler::run(), dtn::storage::SQLiteBundleStorage::store(), dtn::security::PayloadIntegrityBlock::strip(), dtn::security::BundleAuthenticationBlock::strip(), and dtn::security::PayloadIntegrityBlock::verify().
const std::list<const T*> dtn::data::Bundle::getBlocks | ( | ) | const |
T & dtn::data::Bundle::insert | ( | const dtn::data::Block & | before | ) |
Definition at line 264 of file Bundle.h.
References dtn::data::Bundle::BlockList::insert().
Referenced by dtn::data::CompressedPayloadBlock::compress(), dtn::security::SecurityBlock::decryptBlock(), dtn::security::SecurityBlock::encryptBlock(), dtn::data::CompressedPayloadBlock::extract(), dtn::storage::MemoryBundleStorage::getDistinctDestinations(), and dtn::api::PlainDeserializer::BlockInserter::insert().
dtn::data::PayloadBlock & dtn::data::Bundle::insert | ( | const dtn::data::Block & | before, |
ibrcommon::BLOB::Reference & | ref | ||
) |
Definition at line 191 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::insert().
Block & dtn::data::Bundle::insert | ( | dtn::data::ExtensionBlock::Factory & | factory, |
const dtn::data::Block & | before | ||
) |
Definition at line 254 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), and dtn::data::Bundle::BlockList::insert().
bool dtn::data::Bundle::operator!= | ( | const Bundle & | other | ) | const |
Definition at line 146 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
bool dtn::data::Bundle::operator< | ( | const Bundle & | other | ) | const |
Definition at line 156 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
bool dtn::data::Bundle::operator== | ( | const Bundle & | other | ) | const |
Definition at line 151 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
bool dtn::data::Bundle::operator> | ( | const Bundle & | other | ) | const |
Definition at line 161 of file Bundle.cpp.
References dtn::data::PrimaryBlock::PrimaryBlock().
T & dtn::data::Bundle::push_back | ( | ) |
Definition at line 250 of file Bundle.h.
References dtn::data::Bundle::BlockList::push_back().
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::security::BundleAuthenticationBlock::auth(), dtn::api::BLOBBundle::BLOBBundle(), dtn::utils::Utils::decapsule(), dtn::utils::Utils::encapsule(), dtn::api::FileBundle::FileBundle(), dtn::storage::SQLiteBundleStorage::get(), dtn::api::PlainDeserializer::BlockInserter::insert(), main(), dtn::data::operator<<(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::data::SeparateDeserializer::readBlock(), dtn::storage::BundleStorage::rejectCustody(), StreamBundle::StreamBundle(), and dtn::api::StringBundle::StringBundle().
Definition at line 217 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::push_back().
Definition at line 242 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), and dtn::data::Bundle::BlockList::push_back().
T & dtn::data::Bundle::push_front | ( | ) |
Definition at line 236 of file Bundle.h.
References dtn::data::Bundle::BlockList::push_front().
Referenced by dtn::security::BundleAuthenticationBlock::auth(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::data::CompressedPayloadBlock::compress(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::api::PlainDeserializer::BlockInserter::insert(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::ApiServer::processIncomingBundle(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::security::PayloadIntegrityBlock::sign(), and StreamBundle::StreamBundle().
Definition at line 204 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::push_front().
Definition at line 230 of file Bundle.cpp.
References dtn::data::ExtensionBlock::Factory::create(), and dtn::data::Bundle::BlockList::push_front().
void dtn::data::Bundle::remove | ( | const dtn::data::Block & | block | ) |
Definition at line 181 of file Bundle.cpp.
References dtn::data::Bundle::BlockList::remove().
Referenced by dtn::data::CompressedPayloadBlock::compress(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::SecurityBlock::decryptBlock(), dtn::security::SecurityBlock::encryptBlock(), dtn::data::CompressedPayloadBlock::extract(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::SeparateDeserializer::readBlock(), dtn::api::ExtendedApiHandler::run(), dtn::security::PayloadIntegrityBlock::strip(), and dtn::security::BundleAuthenticationBlock::strip().
string dtn::data::Bundle::toString | ( | ) | const |
Reimplemented from dtn::data::PrimaryBlock.
Definition at line 266 of file Bundle.cpp.
Referenced by dtn::daemon::DevNull::callbackBundleReceived(), dtn::daemon::Debugger::callbackBundleReceived(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::core::BundleCore::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), dtn::storage::MemoryBundleStorage::remove(), dtn::storage::MemoryBundleStorage::store(), dtn::storage::SQLiteBundleStorage::store(), and dtn::core::BundleGeneratedEvent::toString().
friend class DefaultDeserializer [friend] |
Reimplemented from dtn::data::PrimaryBlock.
friend class DefaultSerializer [friend] |
Reimplemented from dtn::data::PrimaryBlock.
friend class dtn::security::MutualSerializer [friend] |
friend class dtn::security::StrictSerializer [friend] |