question

Upvotes
Accepted
216 2 1 3

如果我们使用OPEN DACS API连接DACS Server,我们是否需要设置'DACSMUXNAME'和'DACSMUXPING'变量

open-dacs
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
216 2 1 3

实际上, Open DACS API是通过DACS Daemon连接到DACS服务器。一个DACS Daemon可以安装在本地机器或远程机器上。

根据《DACS Installation Guide》这些环境变量是在你想连接到一个远程DACS守护进程时使用的:

1654481175019.png

然而,Open DACS API允许你指定一个设置来连接到一个远程DACS Daemon。例如,在Open DACS C++中,你可以在authorizationOptions参数中指定它。

rfa::dacs::AuthorizationSystem::acquire(const rfa::common::RFA_String& authorizationName = “DACS”, const AUTH_SYSTEM_OPTION_VEC *authorizationOptions = NULL) throw (AuthorizationException) 

authorizationOptions参数是一个RFA_Vector,包含AUTH_SYSTEM_OPTION_ELEMENT类型。这些选项用于通知API "如何 "连接到DACS守护进程以及如何记录使用情况。比如说:

1654481175048.png



1654481175019.png (30.5 KiB)
1654481175048.png (64.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.