prophet::OfferTLV Class Reference

#include <OfferTLV.h>

Inheritance diagram for prophet::OfferTLV:
prophet::BundleTLV prophet::BaseTLV

List of all members.

Public Member Functions

 OfferTLV (const BundleOfferList &list)
 Constructor.
virtual ~OfferTLV ()
 Destructor.
size_t serialize (u_char *bp, size_t len) const
 Virtual from BaseTLV.

const BundleOfferList list () const
 Accessors.

Protected Member Functions

 OfferTLV ()
 Constructor.
bool deserialize (const u_char *bp, size_t len)
 Virtual from BaseTLV.

Protected Attributes

BundleOfferList list_
 Priority sorted list of Bundles to offer to peer.

Friends

class TLVFactory< OfferTLV >

Detailed Description

Definition at line 27 of file OfferTLV.h.


Constructor & Destructor Documentation

prophet::OfferTLV::OfferTLV ( const BundleOfferList list  ) 

Constructor.

Definition at line 23 of file OfferTLV.cc.

virtual prophet::OfferTLV::~OfferTLV (  )  [inline, virtual]

Destructor.

Definition at line 38 of file OfferTLV.h.

prophet::OfferTLV::OfferTLV (  )  [protected]

Constructor.

Protected to force access through TLVFactory.

Definition at line 27 of file OfferTLV.cc.


Member Function Documentation

bool prophet::OfferTLV::deserialize ( const u_char *  bp,
size_t  len 
) [protected, virtual]
const BundleOfferList prophet::OfferTLV::list (  )  const [inline]

Accessors.

Definition at line 46 of file OfferTLV.h.

References list_.

Referenced by prophet::Encounter::handle_offer_tlv().

size_t prophet::OfferTLV::serialize ( u_char *  bp,
size_t  len 
) const [virtual]

Friends And Related Function Documentation

friend class TLVFactory< OfferTLV > [friend]

Definition at line 50 of file OfferTLV.h.


Member Data Documentation

Priority sorted list of Bundles to offer to peer.

Definition at line 62 of file OfferTLV.h.

Referenced by deserialize(), list(), and serialize().


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 11:41:16 2010 for DTN Reference Implementation by  doxygen 1.6.3