Login  
Search All Forums
Dart Home | PowerTCP Emulation for ActiveX | Custom Development Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
AuthorForum: PowerTCP Emulation / Telnet for ActiveX
Topic: Speed Issues
superdj

From: Swansea, USA
Posts: 22
Member Since: 04/09/03
posted July 30, 2003 11:37 AM

Hi,

What is the most efficient way to receive data using the telnet control in VB?

Currently I am using the "Telnet.Receive strResponse", method. I also use the Search method quite a bit.

While the terminal application we use is lightning quick, the VB application using the telnet control can take up to a minute to receive the same data on a 100Mbps network.

Any ideas on speeding it up, because other than that it does the job great.

Cheers,

Dave.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 30, 2003 11:44 AM

It may have something to do with Buffersize. As a test you could try to write the same program with the TCP control ( get a trial of the Winsock Tool to get the trial license ) and then play around with the buffersize. If you find a buffersize that is faster, you can tell us and we could set the Telnet's buffer to that value.

Also, it may have to do with the fact that the Telnet stream has a lot parsing done on it to look for Command sequences and to do stuff like doubling IAC's and converting Line feeds.

superdj

From: Swansea, USA
Posts: 22
Member Since: 04/09/03
posted July 31, 2003 9:08 AM

Hi,

I tried using the TCP tool instead but no change in receive speeds. I tried increasing the ReceiveBufferSize while the connection was open but to no avail.

Any other ideas?

Cheers,

Dave.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 31, 2003 9:30 AM

Sorry, but no. That's the only thing I can think of that you could tweak.

superdj

From: Swansea, USA
Posts: 22
Member Since: 04/09/03
posted July 31, 2003 10:59 AM

It seems that the Search method is slowing down the app.

Could you recommend any coding methods whereby I wouldn't have to use the Search routine so much?

Cheers,

Dave.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 31, 2003 11:32 AM


I would only use Search when you really need to Search, otherwise use Receive. That sounds kind of obvious but since I don't know the details of your app I can't really tell you when to use it or not.
Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX