Asynchronous UDP Client

Hi,

I’m aware there is an example of a non-blocking, asynchronous version of a TCP client available here. I’m looking at implementing an asynchronous version of a UDP client class with the same non-blocking connect call. What kind of overall changes would be needed to transition the TCP code to UDP? How easy would it be to transition the code/ is it possible to use this as a template and make a couple tweaks?

The standard UDP class is already asynchronous. For best results, use sendPacket and receivePacket.

2 Likes

Thank you! I have a follow-up question:

I found the UDP error documentation here, but I do not know what the error “PENDING” can mean and what are possible causes of this error. Is there any further documentation on this error?

Any suggestions for my question above? Any help would be very valuable!