# UDP Socket polling

**URL:** <https://forum.xojo.com/t/udp-socket-polling/30238>\
**Category:** General\
**Created:** [March 9, 2016, 9:02pm UTC](https://forum.xojo.com/t/udp-socket-polling/30238 "2016-03-09T21:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flavio\_Piccolo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@Flavio\_Piccolo](https://forum.xojo.com/u/Flavio_Piccolo)\
**Post date:** [March 9, 2016, 9:02pm UTC](https://forum.xojo.com/t/udp-socket-polling/30238/1 "2016-03-09T21:02:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:13pm UTC](https://forum.xojo.com/t/udp-socket-polling/30238/2 "2020-10-29T18:13:24Z")

</div>


