#include <ProphetTLV.h>
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 EndpointID & | sender () |
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 > |
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.
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] |
size_t dtn::HelloTLV::serialize | ( | u_char * | bp, | |
size_t | len | |||
) | [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_.
Referenced by dtn::ProphetTLV::dump().
bool dtn::HelloTLV::deserialize | ( | u_char * | buffer, | |
size_t | len | |||
) | [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.
friend class TLVFactory< HelloTLV > [friend] |
Definition at line 106 of file ProphetTLV.h.
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().