Use getopt() to parse input in UDP client and add some comments.