Thema: Delphi Indy TCP Problem.

Einzelnen Beitrag anzeigen

nuclearping

Registriert seit: 7. Jun 2008
708 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: Indy TCP Problem.

  Alt 25. Mär 2009, 08:06
Wenn ich recht entsinne so:
Delphi-Quellcode:
var
  cList: TList;
  Count: Integer;
begin
  cList := IdTCPServer.Contexts.LockList;
  try
    for Count := 0 to cList.Count -1 do
      with TIdContext(cList[Count]) do
        Connection.IOHandler.WriteLn ('...');
  finally
    IdTCPServer.Contexts.UnlockList;
  end;
end;
  Mit Zitat antworten Zitat