dtn::BaseTLV Class Reference

#include <ProphetTLV.h>

Inheritance diagram for dtn::BaseTLV:

oasys::Logger dtn::BundleTLV dtn::HelloTLV dtn::RIBDTLV dtn::RIBTLV List of all members.

Detailed Description

Definition at line 54 of file ProphetTLV.h.

Public Member Functions

virtual ~BaseTLV ()
Prophet::prophet_tlv_t typecode ()
u_int8_t flags ()
u_int16_t length ()
virtual size_t serialize (u_char *bp, size_t len)=0
virtual void dump (oasys::StringBuffer *buf)

Protected Member Functions

 BaseTLV (Prophet::prophet_tlv_t typecode=Prophet::UNKNOWN_TLV, const char *logpath=LOGPATH)
virtual bool deserialize (u_char *bp, size_t len)=0

Protected Attributes

Prophet::prophet_tlv_t typecode_
u_int8_t flags_
u_int16_t length_


Constructor & Destructor Documentation

virtual dtn::BaseTLV::~BaseTLV (  )  [inline, virtual]

Definition at line 57 of file ProphetTLV.h.

dtn::BaseTLV::BaseTLV ( Prophet::prophet_tlv_t  typecode = Prophet::UNKNOWN_TLV,
const char *  logpath = LOGPATH 
) [inline, protected]

Definition at line 67 of file ProphetTLV.h.


Member Function Documentation

Prophet::prophet_tlv_t dtn::BaseTLV::typecode (  )  [inline]

Definition at line 59 of file ProphetTLV.h.

References typecode_.

Referenced by dtn::ProphetEncounter::handle_hello_tlv(), and dtn::ProphetEncounter::handle_prophet_tlv().

u_int8_t dtn::BaseTLV::flags (  )  [inline]

Definition at line 60 of file ProphetTLV.h.

References flags_.

Referenced by dtn::BundleTLV::read_bundle_offer().

u_int16_t dtn::BaseTLV::length (  )  [inline]

Definition at line 61 of file ProphetTLV.h.

References length_.

Referenced by dtn::ProphetTLV::add_tlv(), and dtn::ProphetTLV::deserialize().

virtual size_t dtn::BaseTLV::serialize ( u_char *  bp,
size_t  len 
) [pure virtual]

Implemented in dtn::HelloTLV, dtn::RIBDTLV, dtn::RIBTLV, and dtn::BundleTLV.

void dtn::BaseTLV::dump ( oasys::StringBuffer buf  )  [virtual]

Reimplemented in dtn::HelloTLV, dtn::RIBDTLV, dtn::RIBTLV, and dtn::BundleTLV.

Definition at line 23 of file ProphetTLV.cc.

References oasys::StringBuffer::appendf(), flags_, length_, dtn::Prophet::tlv_to_str(), and typecode_.

virtual bool dtn::BaseTLV::deserialize ( u_char *  bp,
size_t  len 
) [protected, pure virtual]

Implemented in dtn::HelloTLV, dtn::RIBDTLV, dtn::RIBTLV, and dtn::BundleTLV.


Member Data Documentation

Prophet::prophet_tlv_t dtn::BaseTLV::typecode_ [protected]

Definition at line 77 of file ProphetTLV.h.

Referenced by dtn::BundleTLV::deserialize(), dtn::RIBTLV::deserialize(), dtn::RIBDTLV::deserialize(), dump(), dtn::RIBTLV::serialize(), dtn::HelloTLV::serialize(), and typecode().

u_int8_t dtn::BaseTLV::flags_ [protected]

Definition at line 78 of file ProphetTLV.h.

Referenced by dtn::BundleTLV::deserialize(), dtn::RIBTLV::deserialize(), dtn::RIBDTLV::deserialize(), dump(), and flags().

u_int16_t dtn::BaseTLV::length_ [protected]

Definition at line 79 of file ProphetTLV.h.

Referenced by dtn::BundleTLV::BundleTLV(), dtn::BundleTLV::deserialize(), dtn::RIBTLV::deserialize(), dtn::RIBDTLV::deserialize(), dtn::HelloTLV::deserialize(), dump(), dtn::HelloTLV::HelloTLV(), length(), dtn::RIBDTLV::RIBDTLV(), dtn::RIBTLV::RIBTLV(), dtn::BundleTLV::serialize(), dtn::RIBTLV::serialize(), dtn::RIBDTLV::serialize(), and dtn::HelloTLV::serialize().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:58 2007 for DTN Reference Implementation by  doxygen 1.5.1