IBR-DTNSuite  0.8
dtn::routing::ProphetRoutingExtension::AcknowledgementSet Class Reference

Set of Acknowledgements, that can be serialized in node handshakes. More...

#include <ProphetRoutingExtension.h>

Inheritance diagram for dtn::routing::ProphetRoutingExtension::AcknowledgementSet:
Collaboration diagram for dtn::routing::ProphetRoutingExtension::AcknowledgementSet:

List of all members.

Public Member Functions

 AcknowledgementSet ()
 AcknowledgementSet (const AcknowledgementSet &)
void insert (const Acknowledgement &)
 Insert an Acknowledgement into the set.
void purge ()
 purge the set, i.e. remove acknowledgements that have expired
void merge (const AcknowledgementSet &)
 merge the set with a second AcknowledgementSet
bool has (const dtn::data::BundleID &bundle) const
 check if an acknowledgement exists for the bundle
virtual size_t getIdentifier () const
virtual size_t getLength () const
virtual std::ostream & serialize (std::ostream &stream) const
virtual std::istream & deserialize (std::istream &stream)

Static Public Attributes

static const size_t identifier = NodeHandshakeItem::PROPHET_ACKNOWLEDGEMENT_SET

Friends

std::ostream & operator<< (ostream &, const AcknowledgementSet &)

Detailed Description

Set of Acknowledgements, that can be serialized in node handshakes.

Definition at line 106 of file ProphetRoutingExtension.h.


Constructor & Destructor Documentation


Member Function Documentation

std::istream & dtn::routing::ProphetRoutingExtension::AcknowledgementSet::deserialize ( std::istream &  stream) [virtual]
See also:
NodeHandshakeItem::deserialize

Implements dtn::routing::NodeHandshakeItem.

Definition at line 816 of file ProphetRoutingExtension.cpp.

References dtn::routing::ProphetRoutingExtension::Acknowledgement::deserialize().

Here is the call graph for this function:

check if an acknowledgement exists for the bundle

Definition at line 789 of file ProphetRoutingExtension.cpp.

purge the set, i.e. remove acknowledgements that have expired

Definition at line 768 of file ProphetRoutingExtension.cpp.

References dtn::utils::Clock::isExpired().

Referenced by dtn::routing::ProphetRoutingExtension::notify(), and dtn::routing::ProphetRoutingExtension::responseHandshake().

Here is the call graph for this function:

std::ostream & dtn::routing::ProphetRoutingExtension::AcknowledgementSet::serialize ( std::ostream &  stream) const [virtual]

Friends And Related Function Documentation

std::ostream& operator<< ( ostream &  ,
const AcknowledgementSet  
) [friend]

Member Data Documentation


The documentation for this class was generated from the following files: