Added some UDP socket code