code for udpsocket