Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how do I write this assignment in python? In this assignment you will create a UDP Quote of the Day (QOTD) Client and Server. The

how do I write this assignment in python?

In this assignment you will create a UDP Quote of the Day (QOTD) Client and Server.

The client program should:

1. accept a host and port number from the command line or prompt the user for these values at startup

2. Request the QOTD from the specified host and port over UDP

3. Print out the resulting quote

4. Extra Credit (2 points) (Only accept responses from the specified server)

5. Extra Credit (2 points) (Do not wait forever to receive a response. Time-out after 10 seconds and retry twice. Print a suitable message and exit gracefully)

The server program should:

1. accept a port number from the command line or prompt the user for this value at startup

2. Receive requests from any address

3. Reply to requests with the QOTD, This can be a single hard-coded quote. Extra Credit (2 points) rotate through 3 or more quotes

To test your client, try requesting the qotd from icarus.cs.weber.edu:2017 (You will need to be on campus or connected through the vpn or athena)

To test your sever, try requesting the qotd from your server using your client.

What happens in the following scenarios? Explain why you think you get the results you do.

Try running your client on your computer and running the server on icarus.cs.weber.edu

Try running your server on your computer and running the client on icarus.cs.weber.edu

Try running your client without first starting the server it should connect to.

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions