Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Telnet Data Stream using Mabry Telnetx
Message
From
04/04/2005 00:12:54
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Telnet Data Stream using Mabry Telnetx
Miscellaneous
Thread ID:
01001138
Message ID:
01001138
Views:
136
Hi All

I am attempting to get a continuous data feed established with a TelNet server using the SSH1 protocol. I am working with Mabry's TelNetX, using the dll (not the activeX control).

I can connect and receive data, but cannot seem to keep it going without repeatatively issuing a receive command. It seems to me that I should be able to open the connection, authenticate, and keep the data coming until disconnecting. The below code works, except for the problem stated.

I have spent the weekend flailing about, any help would be appreciated.

Thanks
- Don Lowrey

*****
* requires Mabry's telnetX.dll at www.mabry.com
loTelNetX.TerminalType = 1
loTelNetX.autologon = .T.
loTelNetX.Host = "rtdemo.olsen.ch"
loTelNetX.Port = 22
loTelNetX.LogonName = "rtdemo"
loTelNetX.LogonPassword = "password"
loTelNetX.PromptString = ''
loTelNetX.Protocol = 4 && SSH1 protocol

loTelNetX.Connect &&Connects, authenticates
** After connection established
? loTelNetX.Receive &&Server sends request for data
loTelNetX.Send("") &&which is satisfied by the empty string
? loTelNetX.Receive &&A few lines of data is sent, then stops ??
Next
Reply
Map
View

Click here to load this message in the networking platform