简体   繁体   English

QuickFIX / J如何禁用自动登录响应

[英]QuickFIX/J how to disable auto logon response

I'd like to perform some operations after receiving LOGON message and then decide if LOGON failed or not (for example check username and password) but... Immediately after receiving LOGON message QuickFIX/J resends: 我想在收到LOGON消息后执行一些操作,然后确定LOGON是否失败(例如,检查用户名和密码),但是...收到LOGON消息后,QuickFIX / J立即重新发送:

8=FIX.4.4|9=74|35=A|34=13|49=FIXserver|52=20110831-09:27:41.847|56=localhost|98=0|108=10|10=131|
8=FIX.4.4|9=71|35=2|34=14|49=FIXserver|52=20110831-09:27:41.855|56=localhost|7=1|16=0|10=213|

How to disable this functionality? 如何禁用此功能?

Second question. 第二个问题。 If LOGON failed, should I resend LOGOUT message or something else? 如果登录失败,我应该重新发送LOGOUT消息还是其他?

Call you required methods which do your logon checkins and other checks in onLogon . 调用您所需的方法,这些方法可以在onLogon中进行登录签入和其他检查。 You can disable sending messages in toAdmin. 您可以禁用在toAdmin中发送消息。 Entry points for messages is fromAdmin and sending point is toAdmin . 消息的入口点是fromAdmin ,发送点是toAdmin

No need to send logout message as logon didn't happen. 无需发送注销消息,因为未发生登录。 You logout out of a session only if you have logged in. 仅在登录后才能注销会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM