Board index » delphi » IdUDPClient1
George
Delphi Developer |
George
Delphi Developer |
IdUDPClient12005-05-06 04:26:00 AM delphi109 SendBuffer is error, where a motive ? dUdpClient1.sendbuffer(buffer,14); I have Indy Version10, delphi 2005 Thank you George |
Remy Lebeau (TeamB)
Delphi Developer |
2005-05-06 04:55:31 AM
Re:IdUDPClient1
"George" <XXXX@XXXXX.COM>writes
QuoteSendBuffer is error, where a motive ? QuotedUdpClient1.sendbuffer(buffer,14); longer the case. Due to .NET support, Indy no longer accept raw memory for most operations. You must use the new TIdBytes type instead. If you have a preexisting buffer that you want to send, you can use the RawToBytes() function to convert it into a TIdBytes, ie: var IdBytes: TIdBytes; begin IdBytes := RawToBytes(buffer, 14); IdUdpClient1.SendBuffer(IdBytes); end; Gambit |