|
From: Will S. <wil...@ni...> - 2014-04-04 19:01:53
|
I have been working through the examples in OpenDDS Developers Guide. I built the subscriber and publisher in the DDS/DevGuideExamples/DCPS/Messenger ran the DCPSRepoInfo -o simple.ior ./publisher -DCPSRepoInfo file://simple.ior ./subscriber -DCPSRepoInfo file://simple.ior All running on the same computer. If the computer has a network connection obtained through DHCP, both the publisher and subscriber hang. Connecting to them with gdb I found that they were calling hostnamebyaddr_r on the IP address of the network interface obtained via DHCP. If I configure a static IP address instead the publisher and subscriber work as expected. Note we are on an isolated network with a DHCP server but no DNS server. Is a DNS server required whenever using DHCP? |