Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN JAVA you will need to read the protocol and implement a UDP based client that will generate 3 quotes of the day. UDP
IN JAVA
you will need to read the protocol and implement a UDP based client that will generate 3 quotes of the day.
"
UDP Based Character Generator Service Another quote of the day service is defined as a datagram based application on UDP. A server listens for UDP datagrams on UDP port 17. When a datagram is received, an answering datagram is sent containing a quote (the data in the received datagram is ignored).
"
your class should take one parameter: the host to contact to get a quote. (djxmmx.net is a public one you can use.) by default it will print 3 quotes, but you also need to take a --count option to change the number of quotes to print. make sure you get exactly the required number of distinct quotes. your program should look for dropped packets and duplicates.
example runs
% java -cp QotD djxmmx.net Quote 1: "Bulls down one, Michael against Russell, 12 seconds, 11, 10, Jordan, a drive, hangs, fires, SCORES!" - 1998 NBA Finals (Jordan's Last Shot) Quote 2: "You got me lifted shifted higher than the ceiling, and ooh wee its the ultimate feeling. You got me lifted feeling so gifted, Suga how you get so fly?..." - Baby Bash (Suga Suga) Quote 3: "We, we reign, reign supreme, preme dungeon, Dungeon Kings. Do you know what brings rats, mice, snakes, up out they hole, Chonkyfire spliced, with rock and roll, indubitably, piper pied..." - Andry 3000 (Chonkyfire)
% java -cp QotD djxmmx.net --count 1 Quote 1: "Every fight is a food fight if your a cannabal..." - Sportsfan9691
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started