File: staticdiscovery.txt

package info (click to toggle)
fastdds 3.3.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 60,540 kB
  • sloc: cpp: 793,735; xml: 15,283; python: 5,902; sh: 219; makefile: 95; ansic: 12
file content (15 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Using static discovery
----------------------

When static discovery is active, remote endpoints are passed to the application via an xml file.

To see a code example of this feature, review test "StaticDiscovery" of the Blackbox suite.
You will need to copy the two xml files present in this folder to the folder you run the tests from.

These sample xml files contain a reader and a writer with a single writers/reader with custon Locators.
These files can be used as a starting point. The full list of fields and attributes can be taken from
EDPSimpleXML.cpp

NOTE: Locator fields are read as Attributes, not Sub-Fields. Passing the arguments via Attributes creates
and invalid Locator.