|
IBR-DTNSuite
0.12
|
#include <StreamBundle.h>


Public Member Functions | |
| StreamBundle () | |
| StreamBundle (const dtn::data::Bundle &b) | |
| virtual | ~StreamBundle () |
| void | append (const char *data, size_t length) |
| void | clear () |
| size_t | size () |
Public Member Functions inherited from dtn::data::Bundle | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | find (block_t blocktype) |
| const_iterator | find (block_t blocktype) const |
| iterator | find (const Block &block) |
| const_iterator | find (const Block &block) const |
| Bundle (bool zero_timestamp=false) | |
| virtual | ~Bundle () |
| bool | operator== (const BundleID &other) const |
| bool | operator== (const MetaBundle &other) const |
| bool | operator== (const Bundle &other) const |
| bool | operator!= (const Bundle &other) const |
| bool | operator< (const Bundle &other) const |
| bool | operator> (const Bundle &other) const |
| template<class T > | |
| T & | find () |
| template<class T > | |
| const T & | find () const |
| template<class T > | |
| T & | push_front () |
| template<class T > | |
| T & | push_back () |
| template<class T > | |
| T & | insert (iterator before) |
| dtn::data::PayloadBlock & | push_front (ibrcommon::BLOB::Reference &ref) |
| dtn::data::PayloadBlock & | push_back (ibrcommon::BLOB::Reference &ref) |
| dtn::data::PayloadBlock & | insert (iterator before, ibrcommon::BLOB::Reference &ref) |
| dtn::data::Block & | push_front (ExtensionBlock::Factory &factory) |
| dtn::data::Block & | push_back (ExtensionBlock::Factory &factory) |
| dtn::data::Block & | insert (iterator before, ExtensionBlock::Factory &factory) |
| void | erase (iterator it) |
| void | erase (iterator begin, iterator end) |
| void | remove (const Block &block) |
| void | clear () |
| Size | size () const |
| bool | allEIDsInCBHE () const |
| dtn::data::Length | getPayloadLength () const |
Public Member Functions inherited from dtn::data::PrimaryBlock | |
| PrimaryBlock (bool zero_timestamp=false) | |
| virtual | ~PrimaryBlock () |
| void | set (FLAGS flag, bool value) |
| bool | get (FLAGS flag) const |
| PRIORITY | getPriority () const |
| void | setPriority (PRIORITY p) |
| bool | isFragment () const |
| void | setFragment (bool val) |
| void | relabel (bool zero_timestamp=false) |
| bool | operator== (const PrimaryBlock &other) const |
| bool | operator!= (const PrimaryBlock &other) const |
| bool | operator< (const PrimaryBlock &other) const |
| bool | operator> (const PrimaryBlock &other) const |
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 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 |
Additional Inherited Members | |
Public Types inherited from dtn::data::Bundle | |
| typedef std::list< block_elem > | block_list |
| typedef block_list::iterator | iterator |
| typedef block_list::const_iterator | const_iterator |
| typedef ibrcommon::find_iterator < iterator, block_t > | find_iterator |
| typedef ibrcommon::find_iterator < const_iterator, block_t > | const_find_iterator |
Public Attributes inherited from dtn::data::PrimaryBlock | |
| Bitset< FLAGS > | procflags |
| Number | lifetime |
| Number | appdatalength |
| EID | destination |
| EID | reportto |
| EID | custodian |
Definition at line 28 of file StreamBundle.h.
| StreamBundle::StreamBundle | ( | ) |
Definition at line 25 of file StreamBundle.cpp.
References dtn::data::Bundle::push_back(), and dtn::data::StreamBlock::setSequenceNumber().

| StreamBundle::StreamBundle | ( | const dtn::data::Bundle & | b) |
Definition at line 34 of file StreamBundle.cpp.
|
virtual |
Definition at line 39 of file StreamBundle.cpp.
| void StreamBundle::append | ( | const char * | data, |
| size_t | length | ||
| ) |
Append data to the payload.
Definition at line 43 of file StreamBundle.cpp.
References ibrcommon::BLOB::Reference::iostream().
Referenced by BundleStreamBuf::overflow().

| void StreamBundle::clear | ( | ) |
deletes the hole payload of the bundle
Definition at line 50 of file StreamBundle.cpp.
References ibrcommon::BLOB::iostream::clear(), dtn::data::StreamBlock::getSequenceNumber(), ibrcommon::BLOB::Reference::iostream(), and dtn::data::StreamBlock::setSequenceNumber().

| size_t StreamBundle::size | ( | ) |
returns the size of the current payload
Definition at line 62 of file StreamBundle.cpp.
References ibrcommon::BLOB::Reference::size().
Referenced by BundleStreamBuf::__get_next_buffer_size(), BundleStreamBuf::flush(), and BundleStreamBuf::overflow().
