QuickFIX/J 多重登录

发布于 2024-08-15 04:30:21 字数 610 浏览 4 评论 0原文

目前,QuickFIX/J 中提供的示例仅允许单个执行程序与单个万岁对话。

从配置文件中的设置: 发送者CompID TargetCompID

他们的行为如下:

Executor - 我只允许来自名为 Banzai 的人的单个连接 Banzai - 我的名字是 Banzai,我只会连接到 Exectuor

我想将它们的行为更改为如下:

Executor - 我允许任何人连接。 Banzai - 我的名字是 ,我只会连接到 Exectuor

我可以知道如何实现这一点吗?

我尝试以下操作: http://www.quickfixj.org/confluence/display/qfj/实现+自定义+登录(这是动态生成会话的正确方法吗?)

仅更改 Banzai 端的代码,并保持配置文件不变,将不允许连接。

还有其他事情我需要改变吗?

(1)执行器的代码

(2)执行器和banzai的配置文件

Currently, the example provided in QuickFIX/J, only allow single executor to talk with single banzai.

From the settings in configuration file :
SenderCompID
TargetCompID

Their behavior is as follow :

Executor - I only allowed single connection from someone called Banzai
Banzai - My name is Banzai, and I will only connect to Exectuor

I would like to change the behavior of them to as follow :

Executor - I allow connection from anyone.
Banzai - My name is , and I will only connect to Exectuor

May I know how I can achieve that?

I try the following :
http://www.quickfixj.org/confluence/display/qfj/Implementing+Custom+Logons (Is this the correct way to have dynamically generated session?)

with only changing the code at Banzai side, and leave configuration file untouched, the connection wouldn't be allowed.

Is there other things else I need to change?

(1) Executor's code

(2) Configuration file for executor and banzai

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

后eg是否自 2024-08-22 04:30:21

QuickFixengine 使用 (BeginString,SenderCompID,TargetCompID) 来区分会话。

当服务器收到消息时,引擎会获取这 3 个值并找到关联的会话。然后会话会收到消息。

这意味着您必须配置您的 SenderCompID(如果是您的服务器,则为 id)和 SenderCompID(您希望通信的另一方的 id)。

您可以在quickfixengine配置中设置多个会话,以便您可以在服务器和客户端之间建立多个连接,或者多个客户端连接到同一服务器。

然而在所有情况下,客户端和服务器都需要知道对方的 ID。

quickfixengine uses the (BeginString,SenderCompID,TargetCompID) to distinguish sessions.

When server gets message, the engine gets those 3 values and finds associated session. The session then gets the message.

That means that you have to configure your SenderCompID (id if your server) and SenderCompID (id of the other side to which you wish to communicate).

You can setup multiple session in quickfixengine configuration so you can have multiple connections between server and client or multiple clients connecting to the same server.

However in all cases both client and server need to know the ID of the other side.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文