Dear programmers,
I need some help with the TLUDP component of the lNet package.
I want to receive UDP datagrams and therefor I set up a TLUdp component and assign a method to the OnReceive handler:
fUDP := TLUdp.Create(self);
fUDP.OnReceive := @OnDataReceive;
fUDP.OnError := @OnSocketError;
fUDP.Listen(21105);
After I started the program, I sent from my linux server some UDP packets to it (via netcat), I see this packets with WireShark, but the OnReceive method is never called.
I went through the LNet documentation, searched for examples, searched this forum and others, but didn't find anything useful.
Has anyone of you some hint or a working example?
Before that I tried to use Indy, but those components have a huge memory leak.
Thank you for your help, kind regards,
Michael