Function eCAL::UDP::V2::topic2mcast

Function Documentation

inline std::string eCAL::UDP::V2::topic2mcast(const std::string &tname_, const std::string &mcast_base_, const std::string &mcast_mask_)

Get multicast address based on the topic_name.

Parameters:
  • tname_ – The topic name.

  • mcast_base_ – Multicast group base address (e.g. 239.x.x.x).

  • mcast_mask_ – Multicast group mask (e.g. x.255.255.255).

Returns:

The multicast address (e.g. “239.151.128.177”).