Answered step by step
Verified Expert Solution
Question
1 Approved Answer
((Internet and Network Computing)) ((Using Java)) Your task is to write a Joke-of-the-Day iterative server for sending funny stories over UDP using multicasting. You should
((Internet and Network Computing)) ((Using Java))
Your task is to write a Joke-of-the-Day iterative server for sending funny stories over UDP using multicasting. You should also write an associated GUI-based client for retrieving and displaying this information. The server should send every second to a multicast address, an instance of a Joke class. All the objects should be encapsulated in a datagram packet. The class should contain at least the following (extend it as you see fit): public class Joke private String type; private String story; The type string should be one of Shocking, Knock-knock, Blonde. The client should have the capability to "filter" the jokes, i.e. display only the ones of the type selected by the user. You can have a set of predefined Joke objects in the server, and randomly select which one to send each time. The client GUI should be equipped with start and stop buttons that start and terminate respectively the interaction with the server. Your task is to write a Joke-of-the-Day iterative server for sending funny stories over UDP using multicasting. You should also write an associated GUI-based client for retrieving and displaying this information. The server should send every second to a multicast address, an instance of a Joke class. All the objects should be encapsulated in a datagram packet. The class should contain at least the following (extend it as you see fit): public class Joke private String type; private String story; The type string should be one of Shocking, Knock-knock, Blonde. The client should have the capability to "filter" the jokes, i.e. display only the ones of the type selected by the user. You can have a set of predefined Joke objects in the server, and randomly select which one to send each time. The client GUI should be equipped with start and stop buttons that start and terminate respectively the interaction with the serverStep 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