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.comloTelNetX.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 ??