#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 | ) |
Constructor.
Definition at line 26 of file ResponseTLV.cc.
| virtual prophet::ResponseTLV::~ResponseTLV | ( | ) | [inline, virtual] |
Destructor.
Definition at line 38 of file ResponseTLV.h.
| 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::BundleTLVHeader::flags, prophet::BaseTLV::flags_, prophet::BundleTLV::BundleTLVHeader::length, prophet::BaseTLV::length_, list_, prophet::BundleTLV::BundleTLVHeader::offer_count, prophet::BundleTLV::read_bundle_entry(), prophet::BundleTLVEntry::RESPONSE, prophet::BaseTLV::RESPONSE_TLV, prophet::BundleTLV::BundleTLVHeader::type, prophet::BaseTLV::typecode_, and prophet::BundleTLVEntry::UNDEFINED.
| const BundleResponseList& prophet::ResponseTLV::list | ( | ) | const [inline] |
Accessors.
Definition at line 46 of file ResponseTLV.h.
References list_.
Referenced by prophet::Encounter::handle_response_tlv().
| 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::BundleTLVHeader::flags, prophet::BundleEntryList< BundleEntryType >::guess_size(), prophet::BundleTLV::BundleTLVHeader::length, prophet::BaseTLV::length_, list_, prophet::BundleTLV::BundleTLVHeader::offer_count, prophet::BaseTLV::RESPONSE_TLV, prophet::BundleTLVEntry::seqno(), prophet::BundleTLVEntry::sid(), prophet::BundleEntryList< BundleEntryType >::size(), prophet::BundleTLVEntry::type(), prophet::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().
1.6.3