#include <McRouteActivationFrame.h>
Public Member Functions | |
std::string | getFrameAsNetworkString (unsigned char source[6]) |
McRouteActivationFrame (unsigned char *next_hop, std::string mc_g, uint32_t route_id, std::string source) | |
McRouteActivationFrame (unsigned char *buffer) | |
virtual | ~McRouteActivationFrame () |
Public Attributes | |
uint16_t | buffer_str_len_ |
struct mc_act_header | header_ |
Struct which stores all fixed length header information of the McMaintenanceFrame. | |
std::string | hostname_source_ |
Name of the multicast group. | |
std::string | mc_group_ |
Name of the multicast group. | |
Static Public Attributes | |
static uint32_t | HEADER_FIXED_LEN = sizeof (eh_header) + sizeof (mc_act_header) |
The length of the beacon header (34 bytes) | |
static uint32_t | stat_id_count = 0 |
Definition at line 24 of file McRouteActivationFrame.h.
McRouteActivationFrame::McRouteActivationFrame | ( | unsigned char * | next_hop, |
std::string | mc_g, | ||
uint32_t | route_id, | ||
std::string | source | ||
) |
Constructs the McMaintenanceFrame on the sender side.
route | The route the frame will take |
activate\xrefitem | todo 1. |
disconnect\xrefitem | todo 2. |
disconnect\xrefitem | todo 3. |
Definition at line 10 of file McRouteActivationFrame.cpp.
McRouteActivationFrame::McRouteActivationFrame | ( | unsigned char * | buffer | ) |
Constructs the McMaintenanceFrame on the receiver side.
buffer | The received network buffer |
Definition at line 20 of file McRouteActivationFrame.cpp.
McRouteActivationFrame::~McRouteActivationFrame | ( | ) | [virtual] |
Definition at line 116 of file McRouteActivationFrame.cpp.
std::string McRouteActivationFrame::getFrameAsNetworkString | ( | unsigned char | source[6] | ) |
Returns a McMaintenanceFrame as a C++ string. Converts the MaintenenceFrame into a C++ string to be written to the socket.
Definition at line 69 of file McRouteActivationFrame.cpp.
Definition at line 57 of file McRouteActivationFrame.h.
Struct which stores all fixed length header information of the McMaintenanceFrame.
Definition at line 52 of file McRouteActivationFrame.h.
uint32_t McRouteActivationFrame::HEADER_FIXED_LEN = sizeof (eh_header) + sizeof (mc_act_header) [static] |
The length of the beacon header (34 bytes)
Definition at line 61 of file McRouteActivationFrame.h.
std::string McRouteActivationFrame::hostname_source_ |
Name of the multicast group.
Definition at line 55 of file McRouteActivationFrame.h.
std::string McRouteActivationFrame::mc_group_ |
Name of the multicast group.
Definition at line 54 of file McRouteActivationFrame.h.
uint32_t McRouteActivationFrame::stat_id_count = 0 [static] |
Definition at line 62 of file McRouteActivationFrame.h.