Question: Write a simple TCP program for a server that: accepts lines of input from a client, counts the number of characters in the sentence, uppercases
Write a simple TCP program for a server that:
accepts lines of input from a client,
counts the number of characters in the sentence,
uppercases the letters in the sentence,
appends the modified uppercased sentence to the characters count,
and returns that to the client.
On the client's side, print the returned message onto the screen.
For testing your codes, you need to run the server code first. Then on the client side, use your nameuniversitylDsectionNumber as a client message.
You can do this by modifying the
TCPServer.py &
TCPclient.py codes found in the slides, or alternatively, you can do the Java version of the code given in the attachment.
For returning your solution, you should submit a single pdf file containing the following:
screenshots of the modified client and server codes pt
a screenshot for client and server output screens showing the client message and the returned server message pt
Good Luck
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
