简体   繁体   English

识别QuickFix是使用主要还是辅助主机进行连接

[英]Identify whether the QuickFix is using primary or secondary host to connect

I am making use of QuickFix/N 我正在使用QuickFix / N

With an initiator/Client app does anyone know if there is a way to identify if the quickfix app is using Primary Host SocketConnectHost=xxx and SocketConnectPort=yyyy or Alternative/Backup/Secondary Host ie SocketConnectHost1=rrr and SocketConnectPort=zzz to connect to the server/acceptor. 使用启动器/客户端应用程序,没有人知道是否有一种方法可以识别quickfix应用程序是使用主主机SocketConnectHost = xxx和SocketConnectPort = yyyy还是备用/备份/辅助主机,即SocketConnectHost1 = rrr和SocketConnectPort = zzz连接到服务器/接受器。

Looking at the QuickFix Config tutorial i dont see anything that lets me find out. 在查看QuickFix Config教程时,我看不到任何让我知道的东西。

http://quickfixn.org/tutorial/configuration.html http://www.quickfixengine.org/quickfix/doc/html/configuration.html http://quickfixn.org/tutorial/configuration.html http://www.quickfixengine.org/quickfix/doc/html/configuration.html

There is no API for that, but the information is known inside QuickFIX/N. 没有用于此的API,但是该信息在QuickFIX / N内部是已知的。 It does log it, here: https://github.com/connamara/quickfixn/blob/master/QuickFIXn/Transport/SocketInitiator.cs#L226 它确实记录了它,在这里: https : //github.com/connamara/quickfixn/blob/master/QuickFIXn/Transport/SocketInitiator.cs#L226

If you want to dig this information out, you can either modify QuickFIX/N to make some private things public (look for socketEndPoint ), or implement a logger which captures the relevant phrase, or do some system-level introspection, ie use a system API to ask "What TCP connections do I have open now," like this: Get all TCP-connections opened by application using C# 如果您想挖掘这些信息,则可以修改QuickFIX / N公开一些私有的东西(寻找socketEndPoint ),或者实现一个捕获相关短语的记录器,或者进行一些系统级的自省,即使用系统询问“我现在打开了哪些TCP连接”的API,如下所示: 使用C#获取应用程序打开的所有TCP连接

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

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