By Jasja Glasbeek on Friday, 21 June 2024
Posted in Support
Likes 0
Views 301
Votes 0
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;
View Full Post