#include <ResponseTLV.h>
Public Member Functions | |
ResponseTLV (const BundleResponseList &list) | |
Constructor. | |
virtual | ~ResponseTLV () |
Destructor. | |
size_t | serialize (u_char *bp, size_t len) const |
Virtual from BaseTLV. | |
const BundleResponseList & | list () const |
Accessors. | |
Protected Member Functions | |
ResponseTLV () | |
Constructor. | |
bool | deserialize (const u_char *bp, size_t len) |
Virtual from BaseTLV. | |
Protected Attributes | |
BundleResponseList | list_ |
Priority sorted list of Bundles to request from peer. | |
Friends | |
class | TLVFactory< ResponseTLV > |
Definition at line 27 of file ResponseTLV.h.
prophet::ResponseTLV::ResponseTLV | ( | const BundleResponseList & | list | ) |
virtual prophet::ResponseTLV::~ResponseTLV | ( | ) | [inline, virtual] |
prophet::ResponseTLV::ResponseTLV | ( | ) | [protected] |
Constructor.
Protected to force access through TLVFactory.
Definition at line 23 of file ResponseTLV.cc.
bool prophet::ResponseTLV::deserialize | ( | const u_char * | bp, | |
size_t | len | |||
) | [protected, virtual] |
Virtual from BaseTLV.
Implements prophet::BaseTLV.
Definition at line 80 of file ResponseTLV.cc.
References prophet::BundleResponseList::add_response(), prophet::BundleTLV::BundleEntrySize, prophet::BundleTLV::BundleTLVHeaderSize, custody, prophet::BundleEntryList< BundleEntryType >::empty(), prophet::BundleTLV::BundleTLV::BundleTLVHeader::flags, prophet::BaseTLV::flags_, prophet::BundleTLV::BundleTLV::BundleTLVHeader::length, prophet::BaseTLV::length_, list_, prophet::BundleTLV::BundleTLV::BundleTLVHeader::offer_count, prophet::BundleTLV::read_bundle_entry(), prophet::BundleTLVEntry::RESPONSE, prophet::BaseTLV::RESPONSE_TLV, prophet::BundleTLV::BundleTLV::BundleTLVHeader::type, prophet::BaseTLV::typecode_, and prophet::BundleTLVEntry::UNDEFINED.
const BundleResponseList& prophet::ResponseTLV::list | ( | ) | const [inline] |
size_t prophet::ResponseTLV::serialize | ( | u_char * | bp, | |
size_t | len | |||
) | const [virtual] |
Virtual from BaseTLV.
Implements prophet::BaseTLV.
Definition at line 31 of file ResponseTLV.cc.
References prophet::BundleTLVEntry::accept(), prophet::BundleTLVEntry::ack(), prophet::BundleEntryList< BundleEntryType >::begin(), prophet::BundleTLV::BundleEntrySize, prophet::BundleTLV::BundleTLVHeaderSize, prophet::BundleTLVEntry::creation_ts(), prophet::BundleTLVEntry::custody(), prophet::BundleEntryList< BundleEntryType >::end(), prophet::BundleTLV::BundleTLV::BundleTLVHeader::flags, prophet::BundleEntryList< BundleEntryType >::guess_size(), prophet::BundleTLV::BundleTLV::BundleTLVHeader::length, prophet::BaseTLV::length_, list_, prophet::BundleTLV::BundleTLV::BundleTLVHeader::offer_count, prophet::BaseTLV::RESPONSE_TLV, prophet::BundleTLVEntry::seqno(), prophet::BundleTLVEntry::sid(), prophet::BundleEntryList< BundleEntryType >::size(), prophet::BundleTLVEntry::type(), prophet::BundleTLV::BundleTLV::BundleTLVHeader::type, prophet::BaseTLV::typecode_, and prophet::BundleTLV::write_bundle_entry().
friend class TLVFactory< ResponseTLV > [friend] |
Definition at line 50 of file ResponseTLV.h.
BundleResponseList prophet::ResponseTLV::list_ [protected] |
Priority sorted list of Bundles to request from peer.
Definition at line 62 of file ResponseTLV.h.
Referenced by deserialize(), list(), and serialize().