Proper use of IdUDPClient.ReceiveBuffer
问题 Thank you for your help. I am converting an older version of Delphi to XE5 and I am getting stuck with the Indy compnent. Need to use IdUDPClient.ReceiveBuffer Here is my code: while not Terminated do begin try lenUDP:= IdUDPClient.ReceiveBuffer(myBuf, buffLength, -1 ); if lenUDP<> 0 then Synchronize(ReceivedLine); except Terminate; end; end; where, myBuf = packed array [0 .. buffLength -1] of char; All help is greatly appreciated. Thank you, Mike 回答1: As I told you in comments to your