dtn::HelloTLV Class Reference

#include <ProphetTLV.h>

Inheritance diagram for dtn::HelloTLV:

dtn::BaseTLV oasys::Logger List of all members.

Detailed Description

Definition at line 82 of file ProphetTLV.h.

Public Member Functions

 HelloTLV (Prophet::hello_hf_t hf, u_int8_t timer, const EndpointID &eid, const char *logpath)
virtual ~HelloTLV ()
Prophet::hello_hf_t hf ()
u_int8_t timer ()
const EndpointIDsender ()
size_t serialize (u_char *, size_t)
void dump (oasys::StringBuffer *buf)

Protected Member Functions

 HelloTLV (const char *logpath)
bool deserialize (u_char *, size_t)

Protected Attributes

Prophet::hello_hf_t hf_
u_int8_t timer_
EndpointID sender_

Friends

class TLVFactory< HelloTLV >


Constructor & Destructor Documentation

dtn::HelloTLV::HelloTLV ( Prophet::hello_hf_t  hf,
u_int8_t  timer,
const EndpointID eid,
const char *  logpath 
) [inline]

Definition at line 85 of file ProphetTLV.h.

References FOUR_BYTE_ALIGN, dtn::Prophet::HelloTLVHeaderSize, dtn::EndpointID::length(), and dtn::BaseTLV::length_.

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

Definition at line 96 of file ProphetTLV.h.

dtn::HelloTLV::HelloTLV ( const char *  logpath  )  [inline, protected]

Definition at line 108 of file ProphetTLV.h.


Member Function Documentation

Prophet::hello_hf_t dtn::HelloTLV::hf (  )  [inline]

Definition at line 98 of file ProphetTLV.h.

References hf_.

Referenced by dtn::ProphetEncounter::handle_hello_tlv().

u_int8_t dtn::HelloTLV::timer (  )  [inline]

Definition at line 99 of file ProphetTLV.h.

References timer_.

Referenced by dtn::ProphetEncounter::handle_hello_tlv().

const EndpointID& dtn::HelloTLV::sender (  )  [inline]

Definition at line 100 of file ProphetTLV.h.

References sender_.

size_t dtn::HelloTLV::serialize ( u_char *  ,
size_t   
) [virtual]

Implements dtn::BaseTLV.

Definition at line 747 of file ProphetTLV.cc.

References dtn::EndpointID::c_str(), FOUR_BYTE_ALIGN, dtn::Prophet::HelloTLVHeaderSize, dtn::Prophet::HelloTLVHeader::HF, hf_, dtn::Prophet::HelloTLVHeader::length, dtn::EndpointID::length(), dtn::BaseTLV::length_, dtn::Prophet::HelloTLVHeader::name_length, sender_, dtn::Prophet::HelloTLVHeader::sender_name, dtn::Prophet::HelloTLVHeader::timer, timer_, dtn::Prophet::HelloTLVHeader::type, and dtn::BaseTLV::typecode_.

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

Reimplemented from dtn::BaseTLV.

Definition at line 32 of file ProphetTLV.cc.

References oasys::StringBuffer::appendf(), dtn::EndpointID::c_str(), dump(), hf_, dtn::Prophet::hf_to_str(), sender_, and timer_.

bool dtn::HelloTLV::deserialize ( u_char *  ,
size_t   
) [protected, virtual]

Implements dtn::BaseTLV.

Definition at line 135 of file ProphetTLV.cc.

References dtn::EndpointID::assign(), dtn::Prophet::HELLO_TLV, dtn::Prophet::HelloTLVHeaderSize, dtn::Prophet::HelloTLVHeader::HF, hf_, dtn::Prophet::HelloTLVHeader::length, dtn::BaseTLV::length_, log_err, dtn::Prophet::HelloTLVHeader::name_length, sender_, dtn::Prophet::HelloTLVHeader::sender_name, dtn::Prophet::HelloTLVHeader::timer, timer_, and dtn::Prophet::HelloTLVHeader::type.


Friends And Related Function Documentation

friend class TLVFactory< HelloTLV > [friend]

Definition at line 106 of file ProphetTLV.h.


Member Data Documentation

Prophet::hello_hf_t dtn::HelloTLV::hf_ [protected]

Definition at line 117 of file ProphetTLV.h.

Referenced by deserialize(), dump(), hf(), and serialize().

u_int8_t dtn::HelloTLV::timer_ [protected]

Definition at line 118 of file ProphetTLV.h.

Referenced by deserialize(), dump(), serialize(), and timer().

EndpointID dtn::HelloTLV::sender_ [protected]

Definition at line 119 of file ProphetTLV.h.

Referenced by deserialize(), dump(), sender(), and 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