unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdSimpleServer,
IdCustomTCPServer, IdEchoServer, IdTCPServer, IdContext;
type
TForm3 =
class(TForm)
IdTCPServer1: TIdTCPServer;
procedure IdTCPServer1Connect(AContext: TIdContext);
procedure IdTCPServer1Execute(AContext: TIdContext);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
procedure TForm3.IdTCPServer1Connect(AContext: TIdContext);
var
test:
String;
begin
Test:=AContext.Connection.IOHandler.ReadLn;
// Eingabe noch Ohne LOCALECHO
AContext.Connection.IOHandler.Writeln(Test);
// Was geschieht hier??
Test:=AContext.Connection.IOHandler.ReadLn;
// Eingabe mit LOCALECHO
end;
procedure TForm3.IdTCPServer1Execute(AContext: TIdContext);
begin
Sleep(1);
end;
end.