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)




"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"Excellent datafeed !!!" - Comment from Arely
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"Everything is working great with the API. I love it." - Comment from Calvin
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
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 ».NET COM - Determine connected state of IQFeed
Author Topic: .NET COM - Determine connected state of IQFeed (4 messages, Page 1 of 1)

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 05:41 AM          Msg. 1 of 4
Hello,

How can I determine if the IQFeed server has connected and disconnected?

take care,
lee

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 05:48 AM          Msg. 2 of 4
Nevermind....programmer error.

kleelof
-Interested User-
Posts: 23
Joined: May 30, 2010


Posted: May 30, 2010 06:02 AM          Msg. 3 of 4
Hello,


Ok. I found the technique, but it is extremely unreliable. Here is what I am using:

Private Sub IQFeed_SystemMessage(ByVal eventSender As System.Object, ByVal e As AxIQFEEDYLib._DIQFeedYEvents_SystemMessageEvent) Handles IQFeed.SystemMessage
Debug.WriteLine("SystemMessage" + e.strSystemData)
Select Case True
Case InStr(e.strSystemData, "S,SERVER CONNECTED")
ServerPanel1.state = ServerPanel.ServerPanelStates.connectedToIQFeed

End Select
End Sub

Out of more than 10 launches, it worked twice.


take care,
lee

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jun 7, 2010 09:42 AM          Msg. 4 of 4
You should certainly be able to use the S,SERVER CONNECTED system message (and the paired S,SERVER DISCONNECTED system message) to determine if the feed is connected or not.

When you say that it only worked 2 out of 10 launches. Are you saying that in the other 8 launches, that this message was never delivered to your app?
 

 

Time: Mon May 6, 2024 11:54 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003