MCProxy

src_state Struct Reference
[Proxy Instance]

Data structure to save multicast sources/groups and there states.

#include "proxy_instance.hpp"

List of all members.

Public Types

enum  state {
  INIT, RUNNING, RESPONSE_STATE, WAIT_FOR_DEL,
  UNUSED_SRC, CACHED_SRC
}

Public Member Functions

 src_state (int counter, state flag)
 src_state ()
std::string state_type_to_string ()

Public Attributes

state flag
int robustness_counter

Member Enumeration Documentation

Represents the possible states of a multicast source/group.

Enumerator:
INIT 

unused state to create this structure

RUNNING 

group is joined

RESPONSE_STATE 

leave message received, send Group Specific Query and wait for a new join message

WAIT_FOR_DEL 

last interval before delete this group

UNUSED_SRC 

multicast data packet received by the kernel, but not used by kernel routing table

CACHED_SRC 

multicast source forwarded by the Linux kernel


Constructor & Destructor Documentation

src_state::src_state (  )  [inline]

Create a new default src_state.

src_state::src_state ( int  counter,
state  flag 
) [inline]

Create a new initialized src_state.


Member Function Documentation

std::string src_state::state_type_to_string (  )  [inline]

Convert the current state to a string.

References CACHED_SRC, flag, HC_LOG_TRACE, INIT, RESPONSE_STATE, RUNNING, UNUSED_SRC, and WAIT_FOR_DEL.


Member Data Documentation

Save the current state.

Referenced by state_type_to_string().

Save a counter that is linked to the current state.