Question: PLEASE INCLUDE SCREENSHOTS AND AN EXPLANATION. I have provided the sample codes below Python UDPServer from socket import * serverPort = 12000 serverSocket = socket(AF_INET,
In this project, you need to replicate the echo client and server program that we discussed in Chapter 2, and then you are required to enhance the ECHO client/server program that we discussed in the class (25%) A set of sample Python code for echo client/server using both TCP and UDP has been introduced in the class, please refer to the slides of Chapter 2. You need copy the code and test them on your computer. This will be the foundation of next step. (45%) Choose either TCP or UDP version ofthe echo server/client, modify it to acomplish the following function: . Server side program should accept a parameter as the port number that it will listen on for . User(e.g. me) runs the client program to connect to server. Client program should accept two The client program reads a sentence typed in by user via keyboard, and user can select a . Upon receipt of the sentence and command, server converts all the letters in the sentence into incoming request, if no parameter is provided, then 9999 is used by default. parameters that allow user to specify the server address and port number. command, then it sends both the command and the sentence to the server uppercase letters or lower letters or other format based on the received command, and sends the result back to the client. Client program displays the replied sentence on the screen. . Your server should support at least three commands: all uppercase, all lowercase, and another commands that you designed(something like initial caps, reverse each word, reverse the entire sentence, etc.). Make sure test your program before submission, you'll receive o if your programs contains syntax errors! Include a README document for instructions on how to run your program. (20%) You also need to provide a document describing your protocol, ie, underlying transport layer service, port numbers, the order and format of message sent and received by client/server, action associated with each message, etc. The document should provide enough information for others to implement client and server program to interact with yours. Read a RFC document for reference (10%) You should also need to discuss the following issues: . How TCP or UDP would affect your application? Why you pick TCP over UDP(Or vice versa) . Is your protocol stateful or stateless? How does the other type of design would affect your application? (Hint: this has nothing to do with whether you use TCP or UDP) Is your server program able to communicate with multiple clients at the same time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
