DDS Peers List

3 posts / 0 new
Last post
Offline
Last seen: 6 years 6 months ago
Joined: 06/10/2014
Posts: 49
DDS Peers List

Hi,

I'm trying to determine the best way to configure a "client-server" architecture using DDS.  We will have an Unbuntu server running DDS and many client machines also running DDS.  A requirement is that all the clients use the same domain id.  The server will run on a separate domain. A client that needs to communicate with the server will create a domain participant with the server domain id.

I want to isolate the clients so that they can only communicate with the server and not other clients.  Is the best way to do this to setup the Peers List on each client with the IP address of the server?    Is there any way around statically configuring the ip addess of the server in each client?

Thanks,

Anne

Organization:
Offline
Last seen: 3 years 9 months ago
Joined: 09/10/2010
Posts: 32

Hello Anne,

    The architecture that you describe above where multiple clients only discover the server but they do not discover each other is called asymetric discovery.  You can achieve this by setting the discovery peers lists (environment variable or in XML Config file or in code) to only have the server's ip address is the clients list.  The server doesn't have to have any ip addresses in its list as you can tell it to accept discovery requests from unknown peers.  Then as new clients are discovered you can get notifications of that client discovery using the builtin topics for participant discovery.  Let me know if this helps any.

Bert

Offline
Last seen: 6 years 6 months ago
Joined: 06/10/2014
Posts: 49

Thanks that worked well.

Anne