(一)集中服务的启动方式
- DCPSInfoRepo -ORBListenEndpoints iiop://localhost:12345
- DCPSInfoRepo -o repo.ior
(二)pub、sub用配置文件
[common] ORBDebugLevel=0 DCPSDebugLevel=10 DCPSTransportDebugLevel=5 ORBLogFile=.\log\infodds.log [domain/1] DiscoveryConfig=myDisConf [repository/myDisConf] #适用第一种DCPSInfoRepo启动方式,DCPSInfoRepo -ORBListenEndpoints iiop://localhost:12345 RepositoryIor=localhost:12345 #适用第二种DCPSInfoRepo启动方式,DCPSInfoRepo -o repo.ior #RepositoryIor=repo.ior
[transport/myTrans] transport_type=udplocal_address=192.168.2.2: |
pub -DCPSConfigFile dds.ini
sub -DCPSConfigFile dds.ini
pub和sub程序的发现模式定义,可以放置在dds.ini文件中,也可以通过命令行如-DCPSInfoRepo loca