UDPServer refactoring