15.2.2 NDDS_DISCOVERY_PEERS Environment Variable Format

You can set the default value for the initial peers list in an environment variable named NDDS_DISCOVERY_PEERS. Multiple peer descriptor entries must be separated by commas. Table 15.1 NDDS_DISCOVERY_PEERS Environment Variable Examples shows some examples. The examples use an implied maximum participant ID of 4 unless otherwise noted. (If you need instructions on how to set environment variables, see Automatic Application Discovery, in the full RTI Connext DDS Core Libraries Getting Started Guide).1Although an updated version of the Getting Started Guide is at https://community.rti.com/documentation, the full Getting Started Guide referenced here contains additional, detailed information, such as how to set discovery peers using an environment variable.

Table 15.1 NDDS_DISCOVERY_PEERS Environment Variable Examples

NDDS_DISCOVERY_PEERS

Description of Host(s)

239.255.0.1

multicast

localhost

localhost

192.168.1.1

10.10.30.232 (IPv4)

FAA0::1

FAA0::0 (IPv6)

himalaya,gangotri

himalaya and gangotri

1@himalaya,1@gangotri

himalaya and gangotri (with a maximum participant ID of 1 on each host)

FAA0::0#localhost

FAA0::0#localhost (could be a UDPv4 transport plug-in registered at network address of FAA0::0) (IPv6)

udpv4://himalaya

himalaya accessed using the "udpv4" transport plug-in (IPv4)

udpv4://FAA0::0#localhost

localhost using the "udpv4" transport plug-in registered at network address FAA0::0

0/0/R

#0/0/R

0/0/R (StarFabric)

starfabric://0/0/R

starfabric://#0/0/R

0/0/R (StarFabric) using the "starfabric" (StarFabric) transport plug-ins

starfabric://FBB0::0#0/0/R

0/0/R (StarFabric) using the "starfabric" (StarFabric) transport plug-ins registered at network address FAA0::0

starfabric://

all unicast addresses accessed via the "starfabric" (StarFabric) transport plug-ins

shmem://FCC0::0

all unicast addresses accessed via the "shmem" (shared memory) transport plug-ins registered at network address FCC0::0

© 2020 RTI