#include <pydtn/MockBundle.h>


Public Member Functions | |
| MockBundle (uint32_t seq, const DTN::ByteString &src, const DTN::ByteString &dest, unsigned int dataSize, const struct timeval &creat, const struct timeval &expir, BundleType t=kData, const DTN::ByteString &app=DTN::ByteString()) | |
| Fully specified constructor. | |
| MockBundle (const MockBundle &aOther) | |
| Copy constructor. | |
| virtual | ~MockBundle () |
| Destructor. | |
| virtual DTN::Bundle * | clone () const |
| |
| unsigned int | size () const |
| |
Since we don't want to actually allocate all of the storage, this instead stores the desired payload size, with the underlying DTN::Bundle holding a 0-size payload bytestring.
Definition at line 46 of file MockBundle.h.
| MockBundle::MockBundle | ( | uint32_t | seq, | |
| const DTN::ByteString & | src, | |||
| const DTN::ByteString & | dest, | |||
| unsigned int | dataSize, | |||
| const struct timeval & | creat, | |||
| const struct timeval & | expir, | |||
| BundleType | t = kData, |
|||
| const DTN::ByteString & | app = DTN::ByteString() | |||
| ) |
Fully specified constructor.
| seq | The sequence number of the bundle at src | |
| src | ByteString representation of the bundle's source | |
| dest | ByteString representation of the bundle's destination | |
| dataSize | The size of the bundle's payload | |
| creat | Creation time | |
| expir | Creation time | |
| t | The type of bundle | |
| app | The application type of the bundle |
Definition at line 33 of file MockBundle.cc.
Referenced by clone().
1.5.4