Subscribe two publishers

2 posts / 0 new
Last post
Offline
Last seen: 6 months 3 weeks ago
Joined: 06/03/2013
Posts: 4
Subscribe two publishers

Hello,
I encountered a problem on subscriber.The host running dds application has two NICs.The applicaion created one Domain and two publishers.Each publisher was configured to use one NIC seperately and each NIC belonged to different subsets.How to create a subscriber subscribing both data from the publishers? The subsciber should run on another host.

Offline
Last seen: 11 months 3 weeks ago
Joined: 06/13/2013
Posts: 14

Sean,

By default discovery occurs on a multicast address which is just within the subnet. To communicate across subnet you need to specify the IP addresses of the endpoints. You can do this by specifying a peer list. There are multiple ways to specify a peer list (file, environment variable, in the QoS file). See section 14.2 Configuring the peer list used in discovery in the user manual (http://community.rti.com/rti-doc/500/ndds.5.0.0/doc/pdf/RTI_CoreLibrariesAndUtilities_UsersManual.pdf ). In your case I would create a peer list (e.g. NDDS_DISCOVERY_PEERS file) for each participant. Since your applications run on different machines I would list the multicast address (239.255.0.1) and the address of the remote endpoints your application needs to communicate with.

Andre