Login  
Search All Forums
Dart Home | PowerVT | Custom Development Reply | PowerVT Topics | Forums   
AuthorForum: PowerVT
Topic: Telnet Non-Blocking Login
bozartht

From: Las Vegas, NV USA
Posts: 2
Member Since: 05/11/05
posted May 31, 2005 8:44 PM

Can you please provide sample code for non-blocking login in VB6. I need look for 3 prompts during login, "user", "password", and "account". Blocking connect works fine as long as the user enter the proper authentication. But if the user enter the wrong password, then the Telnet host will not prompt for "account". So a blocking connect times out waiting for "account". I need to code so that if the user enter a wrong password, the message sent from the Telnet host would be displayed for the user after a predefined "timeout" waiting for the "account" prompt. The code would allow the user to manually enter the username, password information in the Emulator window rather than having the connection terminated with the timeout.

Thanks in advance.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 31, 2005 10:34 PM

Are you sure you are using PowerVT? It sounds like you are using the Emulation Tool to me.

I don't have pre-written code for you but all you have to do is call Receive, instead of Search, then check the data you received for the response that you want and act accordingly.

If you still need a special sample written for you, please contact support@dart.com and request it.

Reply | PowerVT Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX