UDP Socket polling

Hi,

I’m planning to write an SNMP proxy with Xojo but preliminary checks show a few limits.
I tried first to exploit udpsocket events but it’s slow and acceptable for low packets per second.
Then I tried a thread polling the udpsocket. It is very fast, sounds good but because it’s a running loop the CPU is 20% all the time even if just waiting for next UDP packet.

Any suggestion?

Thanks
Flavio