Home > Back-end >  Need a indy to send and receive the simplest example of a string
Need a indy to send and receive the simplest example of a string

Time:11-03

IdTCPClient1 - & gt; IOHandler - & gt; Write (" ABC "); Can use this to send the string to the server.
Could you tell me how to receive the string data, preservation, should how to write?
Has been used clientsocket control that it has read event trigger function, but must be written in indy to now, the client did not receive data in the control triggering event, need how to get the data received, are written to the memo in the box?

CodePudding user response:

Client seems to create a thread that kept IdTCPClient1 - & gt; IOHandler - & gt; ReadLn,

CodePudding user response:

Did feel so efficiency is very low, on the basis of c + + builder 10.2, because it is used to develop android, so can't use Windows VCL clientsocket control, is there any similar clientsocket control controls can be used under FMX, this transceiver is very convenient, especially after receiving the data, there are events can trigger,

CodePudding user response:

Delphi network components in addition to Indy, ICS and former FastNet what?
https://bbs.csdn.net/topics/392303887

CodePudding user response:

Indy really quite good, stable, simple,
You still look at indy bring demo first,

CodePudding user response:

Those in use of Windows socket API is also available in the android, almost can be transplanted directly using the API method, the original poster can be considered as an alternative
  • Related