Skip to content

Commit

Permalink
Adapted eCAL to new service API and added hardcoded .local backup
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed May 6, 2024
1 parent 5f2b5f0 commit bd1d18b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ecal/core/src/service/ecal_service_client_impl.cpp
Expand Up @@ -751,7 +751,12 @@ namespace eCAL
const auto port_to_use = (protocol_version == 0 ? iter.tcp_port_v0 : iter.tcp_port_v1);

// Create the client and add it to the map
const auto new_client_session = client_manager->create_client(static_cast<uint8_t>(protocol_version), iter.hname, port_to_use, event_callback);
const std::vector<std::pair<std::string, uint16_t>> endpoint_list
{
{iter.hname, port_to_use},
{iter.hname + ".local", port_to_use}, // TODO: Make this configurable from the ecal.ini
};
const auto new_client_session = client_manager->create_client(static_cast<uint8_t>(protocol_version), endpoint_list, event_callback);
if (new_client_session)
m_client_map[iter.key] = new_client_session;
}
Expand Down

0 comments on commit bd1d18b

Please sign in to comment.