#include <Bundle.h>

Definition at line 30 of file Bundle.h.
Define the Bundle Security Mode SEC_OFF no security actions will be taken SEC_SIGNED the bundle will be signed before leaving SEC_ENCRYPTED the bundle will be encrypted before leaving SEC_ENC_SIGNED the bundle will be singed and encrypted before leaving
| dtn::api::Bundle::Bundle | ( | ) |
Constructor for a bundle object without a destination
Definition at line 17 of file Bundle.cpp.
References _b, _security, dtn::data::PrimaryBlock::_source, dtn::api::SecurityManager::getDefault(), PRIO_MEDIUM, and setPriority().
| dtn::api::Bundle::Bundle | ( | dtn::data::EID | destination | ) |
Constructor for a bundle object
| destination | defines the destination of this bundle. |
Definition at line 41 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_destination, _security, dtn::api::SecurityManager::getDefault(), PRIO_MEDIUM, and setPriority().
| dtn::api::Bundle::~Bundle | ( | ) | [virtual] |
Destructor
Definition at line 49 of file Bundle.cpp.
| dtn::api::Bundle::Bundle | ( | dtn::data::Bundle & | b | ) | [protected] |
Constructor for a bundle object.
| b | include a bundle of the data library in this bundle. |
Definition at line 26 of file Bundle.cpp.
References _b, _priority, dtn::data::PrimaryBlock::_procflags, PRIO_HIGH, PRIO_LOW, PRIO_MEDIUM, dtn::data::PrimaryBlock::PRIORITY_BIT1, and dtn::data::PrimaryBlock::PRIORITY_BIT2.
| void dtn::api::Bundle::setSecurity | ( | BUNDLE_SECURITY | s | ) |
Set the security parameters for this bundle.
| BUNDLE_SECURITY dtn::api::Bundle::getSecurity | ( | ) |
Returns the security parameters for this bundle.
| void dtn::api::Bundle::setLifetime | ( | unsigned int | lifetime | ) |
Set the lifetime of a bundle
Definition at line 53 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_lifetime, and _lifetime.
Referenced by main().
| unsigned int dtn::api::Bundle::getLifetime | ( | ) |
| void dtn::api::Bundle::requestDeliveredReport | ( | ) |
Definition at line 66 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_procflags, and dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_DELIVERY.
| void dtn::api::Bundle::requestForwardedReport | ( | ) |
Definition at line 71 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_procflags, and dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_FORWARDING.
| void dtn::api::Bundle::requestDeletedReport | ( | ) |
Definition at line 76 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_procflags, and dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_DELETION.
| void dtn::api::Bundle::requestReceptionReport | ( | ) |
Definition at line 81 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::_procflags, and dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_RECEPTION.
| void dtn::api::Bundle::setPriority | ( | Bundle::BUNDLE_PRIORITY | p | ) |
Set the priority for this bundle.
Definition at line 91 of file Bundle.cpp.
References _b, _priority, dtn::data::PrimaryBlock::_procflags, PRIO_HIGH, PRIO_LOW, PRIO_MEDIUM, dtn::data::PrimaryBlock::PRIORITY_BIT1, and dtn::data::PrimaryBlock::PRIORITY_BIT2.
Referenced by Bundle().
| Bundle::BUNDLE_PRIORITY dtn::api::Bundle::getPriority | ( | ) |
Returns the priority for this bundle.
Definition at line 86 of file Bundle.cpp.
References _priority.
| ibrcommon::BLOB::Reference dtn::api::Bundle::getData | ( | ) |
Returns a reference to the data block of this bundle.
Definition at line 131 of file Bundle.cpp.
References _b, dtn::data::PayloadBlock::getBLOB(), and dtn::data::Bundle::getBlock().
Referenced by main(), and writeBundle().
| dtn::data::EID dtn::api::Bundle::getDestination | ( | ) |
Definition at line 116 of file Bundle.cpp.
References _b, and dtn::data::PrimaryBlock::_destination.
| dtn::data::EID dtn::api::Bundle::getSource | ( | ) |
Definition at line 126 of file Bundle.cpp.
References _b, and dtn::data::PrimaryBlock::_source.
Referenced by main().
| void dtn::api::Bundle::setReportTo | ( | const dtn::data::EID & | eid | ) |
| bool dtn::api::Bundle::operator< | ( | const Bundle & | other | ) | const |
| bool dtn::api::Bundle::operator> | ( | const Bundle & | other | ) | const |
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const dtn::api::Bundle & | b | |||
| ) | [friend] |
| std::istream& operator>> | ( | std::istream & | stream, | |
| dtn::api::Bundle & | b | |||
| ) | [friend] |
dtn::data::Bundle dtn::api::Bundle::_b [protected] |
Definition at line 167 of file Bundle.h.
Referenced by dtn::api::BLOBBundle::BLOBBundle(), Bundle(), dtn::api::FileBundle::FileBundle(), getData(), getDestination(), getSource(), operator<(), operator>(), requestDeletedReport(), requestDeliveredReport(), requestForwardedReport(), requestReceptionReport(), setLifetime(), setPriority(), and setReportTo().
BUNDLE_SECURITY dtn::api::Bundle::_security [protected] |
BUNDLE_PRIORITY dtn::api::Bundle::_priority [protected] |
unsigned int dtn::api::Bundle::_lifetime [protected] |
1.5.6