MCProxy

receiver_msg Struct Reference
[Communication]

Message used from module Receiver to inform the module Proxy Instance of received a message.

#include "message_format.hpp"

List of all members.

Public Types

enum  receiver_action { JOIN, LEAVE, CACHE_MISS }

Public Member Functions

 receiver_msg (receiver_action type, int if_index, addr_storage g_addr)
 receiver_msg (receiver_action type, int if_index, addr_storage src_addr, addr_storage g_addr)
 ~receiver_msg ()

Public Attributes

addr_storage g_addr
int if_index
addr_storage src_addr
receiver_action type

Member Enumeration Documentation

A module Receiver can receive the following messages.

Enumerator:
JOIN 

a Join message for a specific group on a specific interface

LEAVE 

a Leave message for a specific group on a specific interface

CACHE_MISS 

a Cache Miss message from the Linux Kernel


Constructor & Destructor Documentation

receiver_msg::receiver_msg ( receiver_action  type,
int  if_index,
addr_storage  src_addr,
addr_storage  g_addr 
) [inline]

Constructor used for the action CACHE_MISS.

Parameters:
type type of the receiver action
if_index action for a specific interface index
src_addr action for a specific source
g_addr action for a specific multicast group

References HC_LOG_TRACE.

receiver_msg::receiver_msg ( receiver_action  type,
int  if_index,
addr_storage  g_addr 
) [inline]

Constructor used for the actions JOIN and LEAVE.

Parameters:
type type of the receiver action
if_index action for a specific interface index
g_addr action for a specific multicast group

References HC_LOG_TRACE.

receiver_msg::~receiver_msg (  )  [inline]

References HC_LOG_TRACE.


Member Data Documentation

Action for a specific multicast group.

Action on a specific interface index.

Action for a specific source address.

Type of the receiver message.