Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"It’s so nice to be working with real professionals!" - Comment from Len
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »ensuring iqconnect is up
Author Topic: ensuring iqconnect is up (3 messages, Page 1 of 1)

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.

steve1986
-DTN Evangelist-
Posts: 119
Joined: Apr 13, 2009


Posted: Apr 2, 2012 07:37 PM          Msg. 3 of 3
Okay thanks Steve.
 

 

Time: Wed April 24, 2024 3:41 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003