Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: Telnet logon a problem
coolandy2012

From: Bolton, United Kingdom
Posts: 28
Member Since: 04/04/11
posted April 7, 2011 11:14 AM

When use Telnet.Login(credentials) it throwns an exception:
InnerException thrown before finding specified delimiter(s).

I setup username and password earlier and already connected to an IP address using Telnet.Connect.

Code:
      // connect to server
      teln.Connect(server_add);

      // receive timeout 1 second
      teln.Socket.ReceiveTimeout = one;

      // RECEIVE data until timeout
      ReceiveData(teln);

      // setup username and password and login
      credentials.Username = "root";
      credentials.Password = "EPCS";
      credentials.PromptTimeout = one;

      teln.Login(credentials);

The only way I make the telnet session to login is by sending it the username and password. I do not understand how Telnet.Login works?

Heres the code I've used to actually login:
      // write username
      Send_Receive_data(credentials.Username + "\n",teln);

      // write password
      Send_Receive_data(credentials.Password + "\n",teln);

      // write new line
      Send_Receive_data("\n",teln);

Andrew Ashcroft
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted April 7, 2011 2:40 PM

Thank you for your post. Please know that all pre-sale questions should be sent directly to sales@dart.com. You will receive an off-line response to this question.

Jamie
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX