Function eCAL::UDP::GetTopicPayloadAddress

Function Documentation

std::string eCAL::UDP::GetTopicPayloadAddress(const std::string &topic_name)

   @brief GetTopicPayloadAddress retrieves the UDP payload address based on network configuration and the topic name.

   If the network mode is disabled, it returns the local broadcast address.

   If the topic name is empty, it returns base UDP multicast base group based on the global configuration.

   If a topic name is provided, it returns the payload address based on the topic name and
  • * UDP multicast configuration.

Parameters:

topic_name – The name of the topic for which the payload address is requested.

Returns:

The payload address based on the network configuration and the topic name.