added a blocking cleanup() function cleanup() will only end the thread when packets and RECV packets have been successfully transmitted
added a blocking cleanup() function
cleanup() will only end the thread when packets and RECV packets have been successfully transmitted

saucecode/gtUDP