jdstocks03
-Interested User-
Posts: 6
Joined: Aug 17, 2004
|
Posted: Nov 13, 2004 03:29 PM
Msg. 1 of 2
Okay, never mind, I do need help with this. As per a recent thread, the developer was advised to simply connect to the socket instead of registering his app in order to allow IQFeed and DTN.IQ to run simultaneously. I tried this and can't make it happen. Even using the VB History Socket sample I get an error. "Run-time error 40006: Wrong protocl or connection state for the requested transaction or request".
To use an existing connection (i.e., with DTN.IQ already running), both my app and the VB History sample use the following in lieu of registering the app: sckData.Connect "127.0.0.1", 9100. This produces the above error when the SendData command is used.
Any suggestions as to why this isn't working? Also, I tried port 5009 to no avail. I can connect to that port, but I can't send data to it. I do receive the time checks from the server every minute, but can't use port 5009 otherwise. Edited by jdstocks03 on Nov 13, 2004 at 03:32 PM
|
LonnieS
-King of IQ Development-
Posts: 127
Joined: Jun 2, 2004
|
Posted: Jan 21, 2005 07:50 AM
Msg. 2 of 2
The version of DTNIQ you are using uses a partial IQFeed implementation - socket 9100 is not part of it's IQFeed. The next release of DTNIQ will use the full IQFeed implementation and will behave with other applications. If IQFeed was installed after DTNIQ the IQFeed History COM layer will function on runs of DTNIQ but not the history socket. When you connect to port 5009 you still need to login with the S,KEY,0. After you get the response S,KEYOK operation should procede as normal.
Lonnie Shumate Development Manager, IQ Systems DTN Market ACCESS
|