Jump to content
OpenSplice DDS Forum
Sign in to follow this  
payne

how to configure DDSI2Service to dynamic discovery a TCP port of a server application

Recommended Posts

payne   

Hi guys,

I am using the 6.7.1 community version, and I use TCP protocol, because I have two publishers run in the same PC, so I have to set the <Port> element to "0" to dynamically allocate ports, but I don't know how to configure the subscriber application to discovery the publishers and build connections(run in other PCs).

My publisher configuration(IP: 192.168.1.123):

 

<DDSI2Service name="ddsi2">

         ...

        <TCP>
            <Enable>true</Enable>
            <Port>0</Port>
            <NoDelay>true</NoDelay>
        </TCP>
 
and my subscriber configuration:
       <TCP>
            <Enable>true</Enable>
            <NoDelay>true</NoDelay>
        </TCP>
        <Discovery>
            <Peers>
                <Peer Address="192.168.1.123"/>
            </Peers>
        </Discovery>
 
but it doesn't work, and I can not subscribe the message from the server, I think the problem should be about how to discovery the port of the publishers. can somebody help me about this? 
 
Thanks,
Payne
 
 
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×