Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THUMBS UP FOR CORRECT SOLUIONT, USE JABA Your task is to write a Joke-of-the-Day iterative server for sending funny stories over UDP using multicasting. You

image text in transcribed

THUMBS UP FOR CORRECT SOLUIONT,

USE JABA

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

Step: 3

blur-text-image

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions