All pastes #265594 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-03 12:27 UTC
rendered paste body
procedure TTCPEchoThrd.Execute;
var
  DataString1: string;
begin
  sock:=TTCPBlockSocket.create;
  try
    Sock.socket:=CSock;
    sock.GetSins;
    with sock do
      begin
        repeat
          if terminated then break;
          DataString2 := RecvString(dtimeout1);
          if lastError<>0 then break;
          SendString(DataString2+#13);
          SynChronize(@DataParse1);
          if lastError<>0 then break;
        until false;
      end;
  finally
    Sock.Free;
  end;
end;

Procedure TTCPEchoThrd.DataParse1;
begin
         writeln(DataString2);
end;