9 years, 10 months ago.

What exactly is Net::poll() for?

I have been toying with the UDPSocketExample program to continuously send UDP packets to a listening server. I have found that before each packet I send, I have to do a Net:poll(); otherwise the packet doesn't make it. What exactly is poll() doing and is there a way to get around having to call it each time? I am running in to some issues with lost packets due to delays and am wondering if poll is using taking too much time to execute.

Thanks

Be the first to answer this question.