Question: you will need to read the protocol and implement a UDP based client that will generate 3 quotes of the day. UDP Based Character

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!