Recent

Author Topic: Inet telnet problem  (Read 7580 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Inet telnet problem
« on: August 20, 2008, 09:28:25 pm »
Hi all,

I have tested the telnet test client example and changed a little bit.

procedure TFormMain.TelnetConnect(aSocket: TLSocket);
begin
  MemoText.Append('Connected!');

  user:='blabla' + #13#10;
  passwd:='blabla' + #13#10;

if Telnet.Connect=true then
   begin
     Telnet.SendMessage(user);
     Telnet.SendMessage(passwd);
     MemoText.Append('User Authentication is complete!');
   end;
   
end;

when i execute the code I get this error message.

Connected!
User Authentication is complete!
Connected!
Shutdown error [10057]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
User Authentication is complete!
Error on connect: connection refused

I just want to send username and password information to the server side, and execute some commands from there.
Thanks

 

TinyPortal © 2005-2018