![]() |
DAten zum IndyClient zurücksenden.
HI Leute,
ich möchte mit einem TCP Server, der in C++ geschrieben ist, kommunizieren. Dazu nutze ich den IndyCLient. So sende ich den TExt ab:
Delphi-Quellcode:
Jetzt möchte ich aber, dass der Server mir einen Text als Antwort zum Client sendet. Wie stelle ich den Indyclient auf "Empfang"?
procedure TForm1.Button1Click(Sender: TObject);
var test : String; begin IdTCPClient1.Host := '127.0.0.1'; IdTCPClient1.Port := 5000; IdTCPClient1.Connect; IdTCPClient1.Socket.Write('test'); end; Könnt ihr mir helfen? Danke im voraus. Gruß xthing |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:47 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