|
IBR-DTNSuite
0.8
|
#include <ScopeControlHopLimitBlock.h>


Classes | |
| class | Factory |
Public Member Functions | |
| ScopeControlHopLimitBlock () | |
| virtual | ~ScopeControlHopLimitBlock () |
| size_t | getHopsToLive () const |
| void | increment (size_t hops=1) |
| void | setLimit (size_t hops) |
| virtual size_t | getLength () const |
| virtual std::ostream & | serialize (std::ostream &stream, size_t &length) const |
| virtual std::istream & | deserialize (std::istream &stream, const size_t length) |
Static Public Attributes | |
| static const char | BLOCK_TYPE = 199 |
Definition at line 19 of file ScopeControlHopLimitBlock.h.
Definition at line 19 of file ScopeControlHopLimitBlock.cpp.
References dtn::data::Block::REPLICATE_IN_EVERY_FRAGMENT.
Referenced by dtn::data::ScopeControlHopLimitBlock::Factory::create().
Definition at line 26 of file ScopeControlHopLimitBlock.cpp.
| std::istream & dtn::data::ScopeControlHopLimitBlock::deserialize | ( | std::istream & | stream, |
| const size_t | length | ||
| ) | [virtual] |
Deserialize the derived block payload.
| stream | A input stream to deserialize from. |
Implements dtn::data::Block.
Definition at line 60 of file ScopeControlHopLimitBlock.cpp.
| size_t dtn::data::ScopeControlHopLimitBlock::getHopsToLive | ( | ) | const |
Definition at line 30 of file ScopeControlHopLimitBlock.cpp.
References dtn::data::SDNV::getValue().
Referenced by dtn::data::MetaBundle::MetaBundle(), and dtn::storage::SQLiteDatabase::store().

| size_t dtn::data::ScopeControlHopLimitBlock::getLength | ( | ) | const [virtual] |
Return the length of the payload, if this were an abstract block. It is the length put in the third field, after block type and processing flags.
Implements dtn::data::Block.
Definition at line 47 of file ScopeControlHopLimitBlock.cpp.
References dtn::data::SDNV::getLength().
Referenced by serialize().

| void dtn::data::ScopeControlHopLimitBlock::increment | ( | size_t | hops = 1 | ) |
Definition at line 36 of file ScopeControlHopLimitBlock.cpp.
Referenced by dtn::daemon::CapsuleWorker::callbackBundleReceived(), dtn::net::UDPConvergenceLayer::componentRun(), dtn::net::DatagramConnection::run(), dtn::net::LOWPANConnection::run(), dtn::net::DownloadThread::run(), and dtn::net::TCPConnection::run().
| std::ostream & dtn::data::ScopeControlHopLimitBlock::serialize | ( | std::ostream & | stream, |
| size_t & | length | ||
| ) | const [virtual] |
Serialize the derived block payload.
| stream | A output stream to serialize into. |
Implements dtn::data::Block.
Definition at line 52 of file ScopeControlHopLimitBlock.cpp.
References getLength().

| void dtn::data::ScopeControlHopLimitBlock::setLimit | ( | size_t | hops | ) |
Definition at line 41 of file ScopeControlHopLimitBlock.cpp.
Referenced by dtn::daemon::DTNTPWorker::callbackBundleReceived(), dtn::routing::NodeHandshakeExtension::processHandshake(), and dtn::daemon::DTNTPWorker::raiseEvent().
const char dtn::data::ScopeControlHopLimitBlock::BLOCK_TYPE = 199 [static] |
Definition at line 30 of file ScopeControlHopLimitBlock.h.