Thema: Delphi Telnet Server

Einzelnen Beitrag anzeigen

Andre.R

Registriert seit: 31. Mai 2003
45 Beiträge
 
#4

Re: Telnet Server

  Alt 11. Sep 2006, 19:58
Hi,

in Indy 9 geht das Beispiel so :

Delphi-Quellcode:
procedure TMainForm.IdTelnetServer1Execute(AThread: TIdPeerThread);
var
  str : string;
begin
 with AThread.Connection do
  begin
   Write('shell>');
   str:=InputLn('');
   if (str='exit') or (str='logout') then
      Disconnect;
   WriteLn(str);
  end;
end;
Das geht leider nicht im Indy 10 !
Jemand ne Idee ?

cu
  Mit Zitat antworten Zitat