Friday, 21 June 2024
  1 Replies
  446 Visits
  Subscribe
Hello,

I think I found a 'bug'.

below you find the procedure in unit sgcUDP_Client;

I think the Write(Host,Port...) should be replaced by Write(aIPAddress....)

see below:

procedure TsgcUDPCLient_Base.DoWriteData(const aIPAddress: string; aPort: Word;
const aValue: string);
begin
{$IFDEF SGC_DTLS}
if DTLS then
DTLSHandler.Write(aIPAddress,aPort,sgcGetBytesFromUTF8String(aValue))
// DTLSHandler.Write(Host, Port, sgcGetBytesFromUTF8String(aValue))
else
{$ENDIF}
UDPSocket.DoWriteData(aIPAddress, aPort, aValue);
end;