#include <Bundle.h>
Inherited by dtn::api::BLOBBundle, dtn::api::FileBundle, and dtn::api::StringBundle.

This bundle object should be used by the applications to create, send and receive bundles.
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, dtn::data::PrimaryBlock::PRIORITY_BIT1, and dtn::data::PrimaryBlock::PRIORITY_BIT2.
| 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().

| dtn::data::EID dtn::api::Bundle::getDestination | ( | ) |
Definition at line 116 of file Bundle.cpp.
References _b, and dtn::data::PrimaryBlock::_destination.
| unsigned int dtn::api::Bundle::getLifetime | ( | ) |
Returns the lifetime of a bundle
Definition at line 61 of file Bundle.cpp.
References _lifetime.
Referenced by main().
| Bundle::BUNDLE_PRIORITY dtn::api::Bundle::getPriority | ( | ) |
Returns the priority for this bundle.
Definition at line 86 of file Bundle.cpp.
References _priority.
| BUNDLE_SECURITY dtn::api::Bundle::getSecurity | ( | ) |
Returns the security parameters for this bundle.
| 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().
| bool dtn::api::Bundle::operator< | ( | const Bundle & | other | ) | const |
Definition at line 141 of file Bundle.cpp.
References _b.
| bool dtn::api::Bundle::operator> | ( | const Bundle & | other | ) | const |
Definition at line 146 of file Bundle.cpp.
References _b.
| void dtn::api::Bundle::requestDeletedReport | ( | ) |
Definition at line 76 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_DELETION, and dtn::data::PrimaryBlock::set().

| void dtn::api::Bundle::requestDeliveredReport | ( | ) |
Definition at line 66 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_DELIVERY, and dtn::data::PrimaryBlock::set().

| void dtn::api::Bundle::requestForwardedReport | ( | ) |
Definition at line 71 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_FORWARDING, and dtn::data::PrimaryBlock::set().

| void dtn::api::Bundle::requestReceptionReport | ( | ) |
Definition at line 81 of file Bundle.cpp.
References _b, dtn::data::PrimaryBlock::REQUEST_REPORT_OF_BUNDLE_RECEPTION, and dtn::data::PrimaryBlock::set().

| 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().
| 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, and PRIO_MEDIUM.
| void dtn::api::Bundle::setReportTo | ( | const dtn::data::EID & | eid | ) |
Definition at line 121 of file Bundle.cpp.
References _b, and dtn::data::PrimaryBlock::_reportto.
| void dtn::api::Bundle::setSecurity | ( | BUNDLE_SECURITY | s | ) |
Set the security parameters for this bundle.
| 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().
unsigned int dtn::api::Bundle::_lifetime [protected] |
Definition at line 170 of file Bundle.h.
Referenced by getLifetime(), and setLifetime().
BUNDLE_PRIORITY dtn::api::Bundle::_priority [protected] |
Definition at line 169 of file Bundle.h.
Referenced by Bundle(), getPriority(), and setPriority().
BUNDLE_SECURITY dtn::api::Bundle::_security [protected] |
1.7.1