Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdIPMCastClient problem
#6
(11-11-2024, 10:55 AM)swissdreamer Wrote: so at the end, i have a similar problem, as KIPROV has it.

The same questions I asked KIPROV earlier apply to your situation as well. And since KIPROV didn't answer them, we can't know if you have the exact same problem.

Can you provide more details about your setup?  Did you verify the multicast packets are arriving on the NIC you are binding to?

As for your code:

- Multicast handling on Nix platforms is slightly different than on Windows.  You maybe running into an issue similar to this one (which was not resolved at the time):

https://en.delphipraxis.net/topic/8838-t...ace-issue/

- Why you are involving ActiveX when there is no ActiveX/COM object being used anywhere?

- In DoBusRXProcessing(), your string handling is weird.  You are converting AData to UTF-16 via ASCII (Indy's default encoding), then converting the UTF-16 to UTF-8, just to convert it back to UTF-16.  You don't need the UTF8String cast at all.  If the bytes are UTF-8, then you should tell that to BytesToString(), eg:

Code:
RXBuffer := Trim(BytesToString(AData, IndyTextEncoding_UTF8));

Alternatively, you can skip BytesToString() and just use IIdTextEncoding.GetString() directly:

Code:
RXBuffer := Trim(IndyTextEncoding_UTF8.GetString(AData));

Reply


Messages In This Thread
TIdIPMCastClient problem - by kiprov - 07-10-2024, 12:41 AM
RE: TIdIPMCastClient problem - by rlebeau - 07-10-2024, 04:52 AM
RE: TIdIPMCastClient problem - by kiprov - 07-10-2024, 09:18 AM
RE: TIdIPMCastClient problem - by rlebeau - 07-10-2024, 02:42 PM
RE: TIdIPMCastClient problem - by swissdreamer - 11-11-2024, 10:55 AM
RE: TIdIPMCastClient problem - by rlebeau - 11-11-2024, 07:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)