25 #include <ibrcommon/thread/MutexLock.h>
32 Number PrimaryBlock::__sequencenumber = 0;
38 Timestamp PrimaryBlock::__last_timestamp = 0;
41 ibrcommon::Mutex PrimaryBlock::__sequence_lock;
44 : lifetime(3600), appdatalength(0)
125 return (
const BundleID&)*
this < other;
130 return (
const BundleID&)*
this > other;
139 ibrcommon::MutexLock l(__sequence_lock);
142 __sequencenumber = 0;
154 ibrcommon::MutexLock l(__sequence_lock);
156 __sequencenumber_abs++;
159 __sequencenumber_abs.
trim<uint32_t>();
void setBit(E flag, const bool &value)
Bitset< FLAGS > procflags
bool operator<(const PrimaryBlock &other) const
dtn::data::Timestamp timestamp
bool getBit(E flag) const
PrimaryBlock(bool zero_timestamp=false)
void setPriority(PRIORITY p)
PRIORITY getPriority() const
bool operator==(const PrimaryBlock &other) const
dtn::data::Number sequencenumber
bool get(FLAGS flag) const
bool operator>(const PrimaryBlock &other) const
void setFragment(bool val)
static dtn::data::Timestamp getTime()
static double getRating()
void relabel(bool zero_timestamp=false)
dtn::data::SDNV< Size > Number
dtn::data::SDNV< Size > Timestamp
void set(FLAGS flag, bool value)
bool operator!=(const PrimaryBlock &other) const