dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006
|
Posted: May 15, 2006 12:15 PM
Msg. 1 of 5
I'm getting syntax error when I send a news command such as "NCT;". I use TCP/IP address 127.0.0.1, 9100.
Is the address wrong?
Thanks
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: May 15, 2006 12:26 PM
Msg. 2 of 5
127.0.0.1 port 9100 is the correct address/port for News lookup.
I would suspect you are doing something else wrong.
Are you adding a carriage return or a line feed character to the end of your request?
If so, this will make it so that you only recieve results with your first request you make since your next request will have the carriage return or line feed at the beginning.
For example, if I send the command (<CR> = carriage return):
NCT;<CR>
I will get the News configuration back, but if I request it again, I will get a syntax error since it is actually going to be,
<CR>NCT;<CR>
If this still doesnt help, I may need to see your code to be able to tell what you are doing wrong. Edited by DTN_Steve_S on May 15, 2006 at 12:27 PM
|
dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006
|
Posted: May 15, 2006 12:40 PM
Msg. 3 of 5
I'm not adding any extra character such as line feed. I'm using this inside a program which already I've stablished a connection to 127.0.0.1, 5009 to receive the quote data. Does DTN allow have 2 connections?
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: May 15, 2006 12:53 PM
Msg. 4 of 5
Yes, In fact, you should always maintain your level1 conenction to port 5009.
However, the NCT; command needs to be sent through to the lookup port (9100) as it sounds like you are doing.
What happens when you try using the News example apps?
|
dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006
|
Posted: May 15, 2006 01:15 PM
Msg. 5 of 5
Steve, There was an error in my code. Now it works fine.
Thanks for your help.
|