eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.06k stars 738 forks source link

[21095] Example refactor: Discovery Server #4913

Closed Mario-DL closed 2 weeks ago

Mario-DL commented 1 month ago

Description

This PR refactors the DiscoveryServerExample with the current new example format. It also adds proper tests for the examples testing automation.

Contributor Checklist

Reviewer Checklist

Mario-DL commented 1 month ago

Discovery server tests passed although configuration timed out. @elianalf I guess we can start reviewing and later on I will rebase on top of the example splitting PR

Mario-DL commented 1 month ago

What a great refactor!

Only one thing, I have tried to run the Server with transport UDPV6 and TCPV6 and it fails creating the participant, in particular because "Discovery Server wasn't able to allocate the specified listening port."

Ty ! Its true, good catch, it was the fact that if the listening address is not specified in the server we need to change the default one to ::1

MiguelCompany commented 1 month ago

I think it would be better to rebase this on top of #4716, since we are changing the behavior of Discovery Server

elianalf commented 2 weeks ago

The only thing that needs to be changed is the guards in all the .hpp files, following the style in this PR, we can skip CI after the commit.

elianalf commented 2 weeks ago

LGTM! CI passed here