Public Member Functions | Public Attributes | Static Public Attributes
McRouteActivationFrame Class Reference

#include <McRouteActivationFrame.h>

Inheritance diagram for McRouteActivationFrame:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 24 of file McRouteActivationFrame.h.


Constructor & Destructor Documentation

McRouteActivationFrame::McRouteActivationFrame ( unsigned char *  next_hop,
std::string  mc_g,
uint32_t  route_id,
std::string  source 
)

Constructs the McMaintenanceFrame on the sender side.

Parameters:
routeThe route the frame will take
activate\xrefitemtodo 1.
disconnect\xrefitemtodo 2.
disconnect\xrefitemtodo 3.

Definition at line 10 of file McRouteActivationFrame.cpp.

Constructs the McMaintenanceFrame on the receiver side.

Parameters:
bufferThe received network buffer

Definition at line 20 of file McRouteActivationFrame.cpp.

Definition at line 116 of file McRouteActivationFrame.cpp.


Member Function Documentation

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.

Returns:
McMaintenanceFrame as C++ string.

Definition at line 69 of file McRouteActivationFrame.cpp.


Member Data Documentation

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.

Name of the multicast group.

Definition at line 55 of file McRouteActivationFrame.h.

Name of the multicast group.

Definition at line 54 of file McRouteActivationFrame.h.

Definition at line 62 of file McRouteActivationFrame.h.


The documentation for this class was generated from the following files:


adhoc_communication
Author(s): Guenter Cwioro , Torsten Andre
autogenerated on Thu Jun 6 2019 20:59:43