Can someone please explain this assignment more clearly and what exactly are we modifying in client.py? Programming
Fantastic news! We've Found the answer you've been seeking!
Question:
Can someone please explain this assignment more clearly and what exactly are we modifying in client.py?
Transcribed Image Text:
Programming Assignment 1: UDP Echo Client and Server NOTE: Before starting the assignment, please see Submission Guidelines folder in Canvas with general instructions for implementing all assignments and format of submissions. Using UDP sockets, you will write a client and server program that enables the client to send a string of some specified length to the server over the network, and the server simply echoes back that string back to the client. The client program should take the following command-line parameters: IP address of server UDP port of server Length of string to be sent The client program will read in the above input parameters, initialize a string containing alphabetical characters of the specified length, and send the message using the UDP socket API to the server running at the specified IP address and port. If the client does not receive a message back from the server within a certain amount of time (one second), the client should retry up to a maximum number of tries (3) before terminating.2 The program output should print out trace information when data is sent and received, and account for error conditions. Client trace output must include: A message when data is sent to the server indicating destination IP address and port and length plus content of the data sent A message when data is received from the server indicating source IP address and port and contents of the data received An error message when any error occurs such as when a time-out occurs because the server is not running The server program should take the following command-line parameters: IP address that server listens on (127.0.0.1 will be used to test the program) UDP port that server listens on (e.g. 12000) The server will listen on the loopback address and the given port number, and be prepared to receive data from the client up to a fixed maximum length (100 bytes). The server will wait in an infinite loop to receive data from a client, and then send the received data back to the client without modification. Server trace output must include: A message when data is received from the client indicating source IP address and port and contents of the data received 1 The string may contain any value e.g. 'XXXXXXXXXX' 2 The socket API supports a timeout facility. See documentation on socket library relevant to programming language you are using. Programming Assignment 1: UDP Echo Client and Server NOTE: Before starting the assignment, please see Submission Guidelines folder in Canvas with general instructions for implementing all assignments and format of submissions. Using UDP sockets, you will write a client and server program that enables the client to send a string of some specified length to the server over the network, and the server simply echoes back that string back to the client. The client program should take the following command-line parameters: IP address of server UDP port of server Length of string to be sent The client program will read in the above input parameters, initialize a string containing alphabetical characters of the specified length, and send the message using the UDP socket API to the server running at the specified IP address and port. If the client does not receive a message back from the server within a certain amount of time (one second), the client should retry up to a maximum number of tries (3) before terminating.2 The program output should print out trace information when data is sent and received, and account for error conditions. Client trace output must include: A message when data is sent to the server indicating destination IP address and port and length plus content of the data sent A message when data is received from the server indicating source IP address and port and contents of the data received An error message when any error occurs such as when a time-out occurs because the server is not running The server program should take the following command-line parameters: IP address that server listens on (127.0.0.1 will be used to test the program) UDP port that server listens on (e.g. 12000) The server will listen on the loopback address and the given port number, and be prepared to receive data from the client up to a fixed maximum length (100 bytes). The server will wait in an infinite loop to receive data from a client, and then send the received data back to the client without modification. Server trace output must include: A message when data is received from the client indicating source IP address and port and contents of the data received 1 The string may contain any value e.g. 'XXXXXXXXXX' 2 The socket API supports a timeout facility. See documentation on socket library relevant to programming language you are using.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
A Hydrogen atom has one proton in the nucleus and one electron in the shell. In a classic model of the atom, in a certain state, this electron is in a circular orbit around the nucleus with an...
-
On March 1, 20Y8, Eric Keene and Renee Wallace form a partnership. Keene agrees to invest $23,400 in cash and merchandise inventory valued at $62,600. Wallace invests certain business assets at...
-
5. Simplify [5x+3x5 2x
-
Describe the trends in wages and employment implied by the cobweb model for the engineering market. What would happen to the cobwebs if a consulting firm sold information on the history of wages and...
-
When a person stands on tiptoe (a strenuous position), the position of the foot is as shown in Figure P12.50a. The gravitational force on the body Fg is supported by the force n exerted by the floor...
-
Observe one social studies and one ELA lesson in your mentor teacher's classroom. If social studies is not being taught, collaborate with your mentor to locate another classroom to observe. During...
-
Assume there is an increased demand in the United States for Australian wines. If all other factors are held constant, this will result in an increase in the U.S. dollar exchange rate for Australian...
-
Marriott International is a leader in the hospitality industry with more than 3,200 lodging properties worldwide and a workforce of more than 146,000 employees working in 55 countries and...
-
Identify the 11 steps of the research process and develop a set of questions that a researcher should attempt to answer.
-
Why is it important to talk about selling solutions instead of products or services? How does selling solutions further the success of a relationship-selling approach?
-
When might BOB not be best?
-
A wise and weathered sales sage tells you: Today, all selling is global. Is the sage right? Why or why not?
-
One aspect of historical research and inquiry is to cluster events and concepts into meaningful groupings, sometimes by time period. Use the table below to organize the events above by their correct...
-
Suppose that A is an m n matrix with linearly independent columns and the linear system LS(A, b) is consistent. Show that this system has a unique solution.
-
Sophie is a single taxpayer. For the first payroll period in October 2012, she is paid wages of $3,250 monthly. Sophie claims three allowances on her Form W-4. a. Use the percentage method to...
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
Yolanda earns $112,000 in 2012. Calculate the FICA tax that must be paid by: Yolanda:.....................Soc.Sec..................$__________...
-
Eq. 7.36a is written for the conservation of momentum in y direction. Obtain Eq. 7.36-b wherein the stream function is independent variable. Eq. 7.36(a,b) y - v v +(1-y/R)v- + momentum: u u R-y + R P...
-
Using Maslen method, find the approximate value of pressure and density at the junction of the sphere and the cone of Problem 7.29 at Mach number 8. Problem 7.29 An empirical way to determine shock...
-
Show that the derivative of the boundary layer edge velocity is given by Eq. 7.64 for the figure given below. Eq. 7.64 M>>1 Ue dx R dy/dx = 1/R
Study smarter with the SolutionInn App