INET Framework for OMNeT++/OMNEST
inet::Udp::MulticastMembership Struct Reference

#include <Udp.h>

Public Member Functions

bool isSourceAllowed (L3Address sourceAddr)
 

Public Attributes

L3Address multicastAddress
 
int interfaceId = -1
 
UdpSourceFilterMode filterMode = static_cast<UdpSourceFilterMode>(0)
 
std::vector< L3AddresssourceList
 

Member Function Documentation

◆ isSourceAllowed()

bool inet::Udp::MulticastMembership::isSourceAllowed ( L3Address  sourceAddr)
1493 {
1494  auto it = find(sourceList, sourceAddr);
1495  return (filterMode == UDP_INCLUDE_MCAST_SOURCES && it != sourceList.end()) ||
1496  (filterMode == UDP_EXCLUDE_MCAST_SOURCES && it == sourceList.end());
1497 }

Member Data Documentation

◆ filterMode

◆ interfaceId

◆ multicastAddress

◆ sourceList


The documentation for this struct was generated from the following files:
inet::find
std::vector< T >::iterator find(std::vector< T > &v, const Tk &a)
Definition: stlutils.h:44
inet::UDP_INCLUDE_MCAST_SOURCES
@ UDP_INCLUDE_MCAST_SOURCES
Definition: UdpControlInfo_m.h:1205
inet::Udp::MulticastMembership::sourceList
std::vector< L3Address > sourceList
Definition: Udp.h:68
inet::Udp::MulticastMembership::filterMode
UdpSourceFilterMode filterMode
Definition: Udp.h:67
inet::UDP_EXCLUDE_MCAST_SOURCES
@ UDP_EXCLUDE_MCAST_SOURCES
Definition: UdpControlInfo_m.h:1206