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 = (UDPSourceFilterMode)0
 
std::vector< L3AddresssourceList
 

Member Function Documentation

bool inet::UDP::MulticastMembership::isSourceAllowed ( L3Address  sourceAddr)
62 {
63  auto it = std::find(sourceList.begin(), sourceList.end(), sourceAddr);
64  return (filterMode == UDP_INCLUDE_MCAST_SOURCES && it != sourceList.end()) ||
66 }
Definition: UDPControlInfo_m.h:1131
UDPSourceFilterMode filterMode
Definition: UDP.h:58
Definition: UDPControlInfo_m.h:1132
std::vector< L3Address > sourceList
Definition: UDP.h:59
std::vector< T >::iterator find(std::vector< T > &v, const T &a)
Definition: stlutils.h:48

Member Data Documentation


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