FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::net::McastInterface Struct Reference

Interface for multicast membership and IP_MULTICAST_IF: an IPv4 address or an interface index. More...

#include <fastmm/net/udp_socket.hpp>

Static Public Member Functions

static int resolve (std::string_view spec, McastInterface &out) noexcept
 "" (kernel's choice), a dotted-quad address, or an interface name ("eth0", resolved with if_nametoindex).
 

Public Attributes

std::uint32_t addr_be = 0
 
unsigned index = 0
 

Detailed Description

Interface for multicast membership and IP_MULTICAST_IF: an IPv4 address or an interface index.

Both zero lets the kernel pick the interface from the routing table.

Member Function Documentation

◆ resolve()

static int fastmm::net::McastInterface::resolve ( std::string_view  spec,
McastInterface &  out 
)
staticnoexcept

"" (kernel's choice), a dotted-quad address, or an interface name ("eth0", resolved with if_nametoindex).

Returns 0 or -errno (-ENODEV for an unknown name).

Member Data Documentation

◆ addr_be

std::uint32_t fastmm::net::McastInterface::addr_be = 0

◆ index

unsigned fastmm::net::McastInterface::index = 0