IBR-DTNSuite
0.8
|
#include <PrimaryBlock.h>
Definition at line 24 of file PrimaryBlock.h.
Definition at line 30 of file PrimaryBlock.h.
Definition at line 20 of file PrimaryBlock.cpp.
References relabel().
Referenced by dtn::data::Bundle::operator!=(), dtn::data::Bundle::operator<(), dtn::data::Bundle::operator==(), and dtn::data::Bundle::operator>().
dtn::data::PrimaryBlock::~PrimaryBlock | ( | ) | [virtual] |
Definition at line 26 of file PrimaryBlock.cpp.
bool dtn::data::PrimaryBlock::get | ( | FLAGS | flag | ) | const |
Definition at line 42 of file PrimaryBlock.cpp.
References _procflags.
Referenced by dtn::utils::Utils::encapsule(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::storage::SQLiteBundleStorage::get(), dtn::data::DefaultSerializer::getLength(), dtn::api::Bundle::getPriority(), dtn::data::CustodySignalBlock::match(), operator<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::net::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::ApiServer::processIncomingBundle(), dtn::net::UDPConvergenceLayer::queue(), dtn::data::SeparateDeserializer::readBlock(), dtn::api::ExtendedApiHandler::run(), dtn::data::CustodySignalBlock::setMatch(), dtn::security::PayloadIntegrityBlock::sign(), dtn::api::Bundle::statusVerified(), and dtn::storage::SQLiteDatabase::store().
bool dtn::data::PrimaryBlock::isExpired | ( | ) | const |
This method is deprecated because it does not recognize the AgeBlock as alternative age verification.
Definition at line 93 of file PrimaryBlock.cpp.
References _lifetime, and _timestamp.
bool dtn::data::PrimaryBlock::operator!= | ( | const PrimaryBlock & | other | ) | const |
Definition at line 47 of file PrimaryBlock.cpp.
bool dtn::data::PrimaryBlock::operator< | ( | const PrimaryBlock & | other | ) | const |
Definition at line 68 of file PrimaryBlock.cpp.
References _fragmentoffset, _sequencenumber, _source, _timestamp, FRAGMENT, and get().
bool dtn::data::PrimaryBlock::operator== | ( | const PrimaryBlock & | other | ) | const |
Definition at line 52 of file PrimaryBlock.cpp.
References _appdatalength, _fragmentoffset, _sequencenumber, _source, _timestamp, FRAGMENT, and get().
bool dtn::data::PrimaryBlock::operator> | ( | const PrimaryBlock & | other | ) | const |
Definition at line 88 of file PrimaryBlock.cpp.
void dtn::data::PrimaryBlock::relabel | ( | ) |
relabel the primary block with a new sequence number and a timestamp
Definition at line 113 of file PrimaryBlock.cpp.
References _sequencenumber, _timestamp, dtn::utils::Clock::badclock, and dtn::utils::Clock::getTime().
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), PrimaryBlock(), dtn::api::ExtendedApiHandler::run(), and dtn::api::BinaryStreamClient::run().
void dtn::data::PrimaryBlock::set | ( | FLAGS | flag, |
bool | value | ||
) |
Definition at line 30 of file PrimaryBlock.cpp.
References _procflags.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::utils::Utils::encapsule(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::ApiServer::processIncomingBundle(), dtn::api::OrderedStreamHandler::put(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::api::Bundle::requestCompression(), dtn::api::Bundle::requestCustodyTransfer(), dtn::api::Bundle::requestDeletedReport(), dtn::api::Bundle::requestDeliveredReport(), dtn::api::Bundle::requestEncryption(), dtn::api::Bundle::requestForwardedReport(), dtn::api::Bundle::requestReceptionReport(), dtn::api::Bundle::requestSigned(), dtn::api::Bundle::setDestination(), dtn::api::Bundle::setPriority(), and dtn::api::Bundle::setSingleton().
std::string dtn::data::PrimaryBlock::toString | ( | ) | const |
Reimplemented in dtn::data::Bundle.
Definition at line 98 of file PrimaryBlock.cpp.
References _destination, _fragmentoffset, _sequencenumber, _source, _timestamp, FRAGMENT, and dtn::data::EID::getString().
friend class DefaultDeserializer [friend] |
Reimplemented in dtn::data::Bundle.
Definition at line 27 of file PrimaryBlock.h.
friend class DefaultSerializer [friend] |
Reimplemented in dtn::data::Bundle.
Definition at line 26 of file PrimaryBlock.h.
Definition at line 92 of file PrimaryBlock.h.
Referenced by dtn::data::DefaultSerializer::getLength(), dtn::data::CustodySignalBlock::match(), dtn::api::PlainSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::CustodySignalBlock::setMatch(), and dtn::storage::SQLiteDatabase::store().
Definition at line 97 of file PrimaryBlock.h.
Referenced by dtn::data::Dictionary::Dictionary(), dtn::api::Bundle::getCustodian(), dtn::data::DefaultSerializer::getLength(), dtn::data::DefaultSerializer::isCompressable(), dtn::api::PlainSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::ApiServer::processIncomingBundle(), dtn::data::DefaultSerializer::rebuildDictionary(), dtn::api::Bundle::requestCustodyTransfer(), dtn::storage::SimpleBundleStorage::store(), and dtn::storage::SQLiteDatabase::store().
Definition at line 95 of file PrimaryBlock.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::net::FileConvergenceLayer::componentRun(), dtn::data::Dictionary::Dictionary(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::api::Bundle::getDestination(), dtn::storage::MemoryBundleStorage::getDistinctDestinations(), dtn::security::MutualSerializer::getLength(), dtn::data::DefaultSerializer::getLength(), dtn::security::SecurityBlock::getSecurityDestination(), dtn::data::DefaultSerializer::isCompressable(), main(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::ApiServer::processIncomingBundle(), dtn::api::OrderedStreamHandler::put(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), dtn::data::DefaultSerializer::rebuildDictionary(), dtn::storage::BundleStorage::rejectCustody(), dtn::api::Bundle::setDestination(), dtn::security::PayloadIntegrityBlock::sign(), dtn::storage::SQLiteDatabase::store(), and toString().
Definition at line 91 of file PrimaryBlock.h.
Referenced by dtn::security::PayloadConfidentialBlock::encrypt(), dtn::data::DefaultSerializer::getLength(), dtn::data::CustodySignalBlock::match(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::data::CustodySignalBlock::setMatch(), dtn::security::PayloadIntegrityBlock::sign(), and toString().
Definition at line 90 of file PrimaryBlock.h.
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::utils::Utils::encapsule(), dtn::utils::Clock::getExpireTime(), dtn::data::DefaultSerializer::getLength(), dtn::api::Bundle::getLifetime(), dtn::utils::Clock::isExpired(), isExpired(), main(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::OrderedStreamHandler::put(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::api::Bundle::setLifetime(), and dtn::storage::SQLiteDatabase::store().
Definition at line 87 of file PrimaryBlock.h.
Referenced by get(), dtn::data::DefaultSerializer::getLength(), main(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), set(), and dtn::storage::SQLiteDatabase::store().
Definition at line 96 of file PrimaryBlock.h.
Referenced by dtn::data::Dictionary::Dictionary(), dtn::security::MutualSerializer::getLength(), dtn::data::DefaultSerializer::getLength(), dtn::api::Bundle::getReportTo(), dtn::data::DefaultSerializer::isCompressable(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::DefaultSerializer::operator<<(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::ApiServer::processIncomingBundle(), dtn::data::DefaultSerializer::rebuildDictionary(), dtn::api::Bundle::setReportTo(), and dtn::storage::SQLiteDatabase::store().
Definition at line 89 of file PrimaryBlock.h.
Referenced by dtn::data::DefaultSerializer::getLength(), dtn::data::CustodySignalBlock::match(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), relabel(), dtn::data::CustodySignalBlock::setMatch(), and toString().
Definition at line 94 of file PrimaryBlock.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::security::BundleAuthenticationBlock::auth(), dtn::api::Bundle::Bundle(), dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::daemon::EchoWorker::callbackBundleReceived(), dtn::data::Dictionary::Dictionary(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::security::MutualSerializer::getLength(), dtn::data::DefaultSerializer::getLength(), dtn::security::SecurityBlock::getSecuritySource(), dtn::api::Bundle::getSource(), dtn::data::DefaultSerializer::isCompressable(), main(), dtn::data::CustodySignalBlock::match(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::api::ApiServer::processIncomingBundle(), dtn::api::OrderedStreamHandler::put(), dtn::daemon::DTNTPWorker::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::data::DefaultSerializer::rebuildDictionary(), dtn::storage::BundleStorage::rejectCustody(), dtn::data::CustodySignalBlock::setMatch(), dtn::security::PayloadIntegrityBlock::sign(), dtn::storage::SQLiteDatabase::store(), and toString().
Definition at line 88 of file PrimaryBlock.h.
Referenced by dtn::data::Bundle::Bundle(), dtn::utils::Utils::encapsule(), dtn::utils::Clock::getExpireTime(), dtn::data::DefaultSerializer::getLength(), dtn::api::Bundle::getTimestamp(), dtn::utils::Clock::isExpired(), isExpired(), dtn::data::CustodySignalBlock::match(), operator<(), dtn::api::PlainSerializer::operator<<(), dtn::security::MutualSerializer::operator<<(), dtn::data::operator<<(), dtn::data::DefaultSerializer::operator<<(), operator==(), dtn::api::PlainDeserializer::operator>>(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::ApiServer::processIncomingBundle(), relabel(), dtn::data::CustodySignalBlock::setMatch(), dtn::storage::SQLiteDatabase::store(), and toString().