#include <MultiHopBroadcastFrame.h>
Public Member Functions | |
std::string | getFrameAsNetworkString (unsigned char *source) |
MultiHopBroadcastFrame (std::string topic_to_publish, std::string data, string source_host, uint8_t payload_type_field, uint16_t hop_range) | |
MultiHopBroadcastFrame (unsigned char *buffer) | |
virtual | ~MultiHopBroadcastFrame () |
Public Attributes | |
uint16_t | buffer_str_len_ |
struct mh_bcast_header | header_ |
std::string | hostname_source_ |
std::string | payload_ |
bool | rebroadcast |
std::string | topic_ |
Static Public Attributes | |
static uint32_t | frame_count_stat = 0 |
static uint32_t | HEADER_FIXED_LEN = sizeof (eh_header) + sizeof (mh_bcast_header) |
Definition at line 23 of file MultiHopBroadcastFrame.h.
MultiHopBroadcastFrame::MultiHopBroadcastFrame | ( | std::string | topic_to_publish, |
std::string | data, | ||
string | source_host, | ||
uint8_t | payload_type_field, | ||
uint16_t | hop_range | ||
) |
Definition at line 11 of file MultiHopBroadcastFrame.cpp.
MultiHopBroadcastFrame::MultiHopBroadcastFrame | ( | unsigned char * | buffer | ) |
Definition at line 29 of file MultiHopBroadcastFrame.cpp.
MultiHopBroadcastFrame::~MultiHopBroadcastFrame | ( | ) | [virtual] |
Definition at line 84 of file MultiHopBroadcastFrame.cpp.
std::string MultiHopBroadcastFrame::getFrameAsNetworkString | ( | unsigned char * | source | ) |
Definition at line 88 of file MultiHopBroadcastFrame.cpp.
Definition at line 39 of file MultiHopBroadcastFrame.h.
uint32_t MultiHopBroadcastFrame::frame_count_stat = 0 [static] |
Definition at line 35 of file MultiHopBroadcastFrame.h.
Definition at line 38 of file MultiHopBroadcastFrame.h.
uint32_t MultiHopBroadcastFrame::HEADER_FIXED_LEN = sizeof (eh_header) + sizeof (mh_bcast_header) [static] |
Definition at line 36 of file MultiHopBroadcastFrame.h.
std::string MultiHopBroadcastFrame::hostname_source_ |
Definition at line 41 of file MultiHopBroadcastFrame.h.
std::string MultiHopBroadcastFrame::payload_ |
Definition at line 43 of file MultiHopBroadcastFrame.h.
Definition at line 31 of file MultiHopBroadcastFrame.h.
std::string MultiHopBroadcastFrame::topic_ |
Definition at line 42 of file MultiHopBroadcastFrame.h.