IBR-DTNSuite
0.12
|
#include <MetaBundle.h>
Public Member Functions | |
MetaBundle () | |
virtual | ~MetaBundle () |
bool | operator!= (const MetaBundle &other) const |
bool | operator== (const MetaBundle &other) const |
bool | operator< (const MetaBundle &other) const |
bool | operator> (const MetaBundle &other) const |
bool | operator!= (const BundleID &other) const |
bool | operator== (const BundleID &other) const |
bool | operator< (const BundleID &other) const |
bool | operator> (const BundleID &other) const |
bool | operator!= (const PrimaryBlock &other) const |
bool | operator== (const PrimaryBlock &other) const |
bool | operator< (const PrimaryBlock &other) const |
bool | operator> (const PrimaryBlock &other) const |
int | getPriority () const |
bool | get (dtn::data::PrimaryBlock::FLAGS flag) const |
bool | isFragment () const |
void | setFragment (bool val) |
Public Member Functions inherited from dtn::data::BundleID | |
BundleID () | |
virtual | ~BundleID () |
bool | operator!= (const BundleID &other) const |
bool | operator== (const BundleID &other) const |
bool | operator< (const BundleID &other) const |
bool | operator> (const BundleID &other) const |
BundleID (const BundleID &id) | |
BundleID & | operator= (const BundleID &id) |
std::string | toString () const |
virtual dtn::data::Length | getPayloadLength () const |
virtual void | setPayloadLength (const dtn::data::Length &value) |
void | addTo (ibrcommon::BloomFilter &bf) const |
bool | isIn (const ibrcommon::BloomFilter &bf) const |
size_t | raw (unsigned char *data, size_t len) const |
Static Public Member Functions | |
static MetaBundle | create (const dtn::data::BundleID &id) |
static MetaBundle | create (const dtn::data::Bundle &bundle) |
Public Attributes | |
Number | lifetime |
dtn::data::EID | destination |
dtn::data::EID | reportto |
dtn::data::EID | custodian |
Number | appdatalength |
Bitset < dtn::data::PrimaryBlock::FLAGS > | procflags |
Number | expiretime |
Number | hopcount |
Integer | net_priority |
Public Attributes inherited from dtn::data::BundleID | |
dtn::data::EID | source |
dtn::data::Timestamp | timestamp |
dtn::data::Number | sequencenumber |
dtn::data::Number | fragmentoffset |
Definition at line 35 of file MetaBundle.h.
dtn::data::MetaBundle::MetaBundle | ( | ) |
Definition at line 44 of file MetaBundle.cpp.
Referenced by create().
|
virtual |
Definition at line 81 of file MetaBundle.cpp.
|
static |
Creates a mock-up MetaBundle using a BundleID. Such object are incomplete and should only used in a limited fashion.
Definition at line 34 of file MetaBundle.cpp.
References MetaBundle().
Referenced by dtn::net::FileConvergenceLayer::componentRun(), dtn::api::BinaryStreamClient::eventBundleForwarded(), dtn::storage::SimpleBundleStorage::eventDataStorageStoreFailed(), dtn::storage::SQLiteBundleSet::expire(), dtn::storage::SimpleBundleStorage::get(), dtn::storage::SQLiteBundleSet::getNotIn(), dtn::routing::AcknowledgementSet::has(), dtn::data::MemoryBundleSet::has(), dtn::storage::SimpleBundleStorage::info(), dtn::storage::SimpleBundleStorage::iterateDataStorage(), dtn::routing::BaseRouter::raiseEvent(), dtn::storage::BundleStorage::rejectCustody(), dtn::storage::MemoryBundleStorage::remove(), dtn::storage::SimpleBundleStorage::remove(), dtn::api::ExtendedApiHandler::run(), dtn::storage::MemoryBundleStorage::store(), dtn::storage::SimpleBundleStorage::store(), dtn::storage::SQLiteBundleStorage::store(), and dtn::core::BundleCore::validate().
|
static |
Definition at line 39 of file MetaBundle.cpp.
References MetaBundle().
bool dtn::data::MetaBundle::get | ( | dtn::data::PrimaryBlock::FLAGS | flag) | const |
Definition at line 160 of file MetaBundle.cpp.
References procflags.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::api::Registration::delivered(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::core::StatusReportGenerator::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::storage::BundleStorage::rejectCustody(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), and dtn::core::FragmentManager::signal().
int dtn::data::MetaBundle::getPriority | ( | ) | const |
Definition at line 144 of file MetaBundle.cpp.
References dtn::data::PrimaryBlock::PRIORITY_BIT1, dtn::data::PrimaryBlock::PRIORITY_BIT2, and procflags.
Referenced by dtn::storage::MetaStorage::CMP_BUNDLE_PRIORITY::operator()().
|
virtual |
Reimplemented from dtn::data::BundleID.
Definition at line 165 of file MetaBundle.cpp.
References dtn::data::PrimaryBlock::FRAGMENT.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::api::ApiServer::raiseEvent(), dtn::core::FragmentManager::raiseEvent(), dtn::core::BundleCore::raiseEvent(), and dtn::api::Registration::underflow().
bool dtn::data::MetaBundle::operator!= | ( | const MetaBundle & | other) | const |
Definition at line 94 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator!= | ( | const BundleID & | other) | const |
Definition at line 114 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator!= | ( | const PrimaryBlock & | other) | const |
Definition at line 134 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator< | ( | const MetaBundle & | other) | const |
Definition at line 84 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator< | ( | const BundleID & | other) | const |
Definition at line 104 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator< | ( | const PrimaryBlock & | other) | const |
Definition at line 124 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator== | ( | const MetaBundle & | other) | const |
Definition at line 99 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator== | ( | const BundleID & | other) | const |
Definition at line 119 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator== | ( | const PrimaryBlock & | other) | const |
Definition at line 139 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator> | ( | const MetaBundle & | other) | const |
Definition at line 89 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator> | ( | const BundleID & | other) | const |
Definition at line 109 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::operator> | ( | const PrimaryBlock & | other) | const |
Definition at line 129 of file MetaBundle.cpp.
|
virtual |
Reimplemented from dtn::data::BundleID.
Definition at line 170 of file MetaBundle.cpp.
References dtn::data::PrimaryBlock::FRAGMENT, and procflags.
Number dtn::data::MetaBundle::appdatalength |
Definition at line 63 of file MetaBundle.h.
Referenced by dtn::core::FragmentManager::componentRun(), dtn::data::DefaultDeserializer::operator>>(), and dtn::api::EventConnection::raiseEvent().
dtn::data::EID dtn::data::MetaBundle::custodian |
Definition at line 62 of file MetaBundle.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::data::DefaultDeserializer::operator>>(), and dtn::storage::BundleStorage::rejectCustody().
dtn::data::EID dtn::data::MetaBundle::destination |
Definition at line 60 of file MetaBundle.h.
Referenced by dtn::routing::SchedulingBundleIndex::getDistinctDestinations(), dtn::storage::MetaStorage::getDistinctDestinations(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::api::EventConnection::raiseEvent(), dtn::api::ApiServer::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), dtn::routing::ProphetRoutingExtension::GRTR_Strategy::shallForward(), dtn::routing::ProphetRoutingExtension::GTMX_Strategy::shallForward(), dtn::core::FragmentManager::signal(), and dtn::api::Registration::underflow().
Number dtn::data::MetaBundle::expiretime |
Definition at line 65 of file MetaBundle.h.
Referenced by dtn::data::MemoryBundleSet::expire(), dtn::utils::Clock::isExpired(), dtn::data::BundleSetImpl::ExpiringBundle::operator<(), dtn::routing::operator<<(), dtn::routing::operator>>(), and dtn::data::DefaultDeserializer::operator>>().
Number dtn::data::MetaBundle::hopcount |
Definition at line 66 of file MetaBundle.h.
Referenced by dtn::data::DefaultDeserializer::operator>>(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::StaticRoutingExtension::run(), and dtn::routing::EpidemicRoutingExtension::run().
Number dtn::data::MetaBundle::lifetime |
Definition at line 59 of file MetaBundle.h.
Referenced by dtn::routing::operator<<(), dtn::routing::operator>>(), dtn::data::DefaultDeserializer::operator>>(), and dtn::api::EventConnection::raiseEvent().
Integer dtn::data::MetaBundle::net_priority |
Definition at line 67 of file MetaBundle.h.
Bitset<dtn::data::PrimaryBlock::FLAGS> dtn::data::MetaBundle::procflags |
Definition at line 64 of file MetaBundle.h.
Referenced by get(), getPriority(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), dtn::core::BundleCore::raiseEvent(), and setFragment().
dtn::data::EID dtn::data::MetaBundle::reportto |
Definition at line 61 of file MetaBundle.h.
Referenced by dtn::data::DefaultDeserializer::operator>>().