![]() |
AW: Indy-TCP-Server aufsetzen und Dateien versenden
Zitat:
Hi, AThread ist jetzt AContext.
Code:
Gruß
procedure TFrm.SrvExecute(AContext: TIdContext);
Var buf : TIdBytes; begin // Prüfen ob Daten für die Verbindung vorhanden sind, dabei wird Status der Verbindung ebenfalls überprüft // AContext.Connection.IOHandler.CheckForDataOnSource(20); // Wenn keine Daten vorhanden dann raus hier if AContext.Connection.IOHandler.InputBufferIsEmpty then begin SleepEx(1, true); Exit; end; // sonst Daten verarbeiten with AContext.Connection.IOHandler do begin InputBuffer.ExtractToBytes(buffer, len, false); Write(buf,len); usw... end; end; miparo |
AW: Indy-TCP-Server aufsetzen und Dateien versenden
INDY 10 TCP Server DEMO auf source forge verfügbar
|
AW: Indy-TCP-Server aufsetzen und Dateien versenden
Ist das ganze noch aktuell?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:57 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz