OpenDDS集中发现服务DCPSInfoRepo的多种启动方式
1)本地文件方式,-o repo.ior——缺省端口
如:.\DCPSInfoRepo.EXE -DCPSDebugLevel 6 -ORBDebugLevel 10 -ORBLogFile DCPSInfoRepo.log -o repo.ior
2)ip:port方式,-ORBEndpoint iiop://:$SRV_PORT——缺省文件
如:\DCPSInfoRepo.EXE -DCPSDebugLevel 6 -ORBDebugLevel 10 -ORBLogFile DCPSInfoRepo.log -ORBEndpoint iiop://192.168.2.17:12345
3)ip:port方式,-ORBListenEndpoints iiop://:12345——缺省文件
如:\DCPSInfoRepo.EXE -DCPSDebugLevel 6 -ORBDebugLevel 10 -ORBLogFile DCPSInfoRepo.log -ORBListenEndpoints iiop://192.168.2.17:12345
4)端口和文件同时指定
如:DCPSInfoRepo -ORBListenEndpoints iiop://192.168.2.3:12345 -o /home/test/OpenDDS/tests/repo.ior
OpenDDS集中发现服务DCPSInfoRepo的多种配置方式
pub、sub等应用程序使用集中发现模式时,相应的配置文件或命令行需要指定参数
命令行:
1)-DCPSInfoRepo localhost:12345
如:sub.exe