Question
Choose either TCP or UDP version of the echo server/client, modify it to accomplish the following function: Server side program should accept a parameter as
Choose either TCP or UDP version of the echo server/client, modify it to accomplish the following function:
Server side program should accept a parameter as the port number that it will listen on for incoming request, if no parameter is provided, then 9999 is used by default. User(e.g. me) runs the client program to connect to server. Client program should accept two parameters that allow user to specify the server address and port number.
The client program reads a sentence typed in by user via keyboard, and user can select a command, then it sends both the command and the sentence to the server. Upon receipt of the sentence and command, server converts all the letters in the sentence into 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 0 if your programs contains syntax errors!
Include a README document for instructions on how to run your program.
In python or c++ please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started