Done with udp connectivity

unless an error occurs i think that everything is working, let me know
if there are any problems with the code