INET Framework for OMNeT++/OMNEST
inet::IGMPv2::HostGroupData Struct Reference

#include <IGMPv2.h>

Public Member Functions

 HostGroupData (IGMPv2 *owner, const IPv4Address &group)
 
virtual ~HostGroupData ()
 

Public Attributes

IGMPv2owner
 
IPv4Address groupAddr
 
HostGroupState state
 
bool flag
 
cMessage * timer
 

Constructor & Destructor Documentation

inet::IGMPv2::HostGroupData::HostGroupData ( IGMPv2 owner,
const IPv4Address group 
)
140  : owner(owner), groupAddr(group)
141 {
142  ASSERT(owner);
143  ASSERT(groupAddr.isMulticast());
144 
146  flag = false;
147  timer = nullptr;
148 }
bool isMulticast() const
Returns true if this address is in the multicast address range, 224.0.0.0 thru 239.255.255.255, that is, it&#39;s a class D address.
Definition: IPv4Address.h:226
IGMPv2 * owner
Definition: IGMPv2.h:58
cMessage * timer
Definition: IGMPv2.h:62
Definition: IGMPv2.h:51
bool flag
Definition: IGMPv2.h:61
HostGroupState state
Definition: IGMPv2.h:60
IPv4Address groupAddr
Definition: IGMPv2.h:59
inet::IGMPv2::HostGroupData::~HostGroupData ( )
virtual
151 {
152  if (timer) {
153  delete (IGMPHostTimerContext *)timer->getContextPointer();
154  owner->cancelAndDelete(timer);
155  }
156 }
IGMPv2 * owner
Definition: IGMPv2.h:58
cMessage * timer
Definition: IGMPv2.h:62

Member Data Documentation

IGMPv2* inet::IGMPv2::HostGroupData::owner

Referenced by ~HostGroupData().


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