steve1986
-DTN Evangelist-
Posts: 119
Joined: Apr 13, 2009
|
Posted: Apr 1, 2012 10:54 PM
Msg. 1 of 3
I'm making the switch over from linking iq32.dll to using the ShellExecute method.
However, I'm finding some timing issues as to knowing whether or not IQConnect has been properly started. From reading the documentation, it appears I need to query the Admin port and wait for the specific message stating that the connection is up.
One question I have is do I need to maintain a persistent Admin connection in a thread? My app currently does historical data calls to the historical port, so it doesn't maintain a connection to the real-time port which I know would keep IQConnect up. If I close the connection to the Admin port, will IQConnect exit after a certain amount of time?
thanks,
Steve
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Apr 2, 2012 08:24 AM
Msg. 2 of 3
It is recommended that you maintain a connection to the admin port to monitor feed status and/or clientstats.
IQConnect will exit 5s after the last client disconnects. Maintaining the admin port connnection will guarantee that the feed doesn't exit.
|