Question: 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

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!