Answered step by step
Verified Expert Solution
Link Copied!

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))

image text in transcribed

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 server

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

At what level(s) was this OD intervention scoped?

Answered: 1 week ago