Using Telnet with IDTelnet (Delphi)

0

I'm trying to use telnet through the idTelnet component.

  FTelnet := TIdTelnet.Create(Nil);

  FTelnet.Host := '127.0.0.1';
  FTelnet.Port := 1024;

  FTelnet.Connect;
  // Login
  FTelnet.SendString('TEST');
  FTelnet.SendCh(cEnter);
  Sleep(1000);
  FTelnet.SendString('TEST');
  FTelnet.SendCh(cEnter);
  Sleep(1000);

  FTelnet.Disconnect(True);

It works correctly until you run the Disconnect command.

Returns the following error.

EIdTelnetServerOnDataAvailableIsNil with message 'OnDataAvailable event is nil.'

    
asked by anonymous 13.07.2018 / 21:50

0 answers