Question: This needs to implemented in Python using the Socket Library Write a simple TCP-based client server application where the client sends a text message to
This needs to implemented in Python using the Socket Library

Write a simple TCP-based client server application where the client sends a text message to the server that computes a digest of the message and sends it back to the client. The client should Connect to the server Read a sequence of characters from the user and sends it to the server. If input is 'exit' go to step 4 Receive the digest from the server, print the digest and port numbers as shown below and go to step 2 Close connection and exit 1. 2. 3. 4. Input sentence: test 1 Sent test1' on port 57286 to server 127.0.0.1,13000 Received digest '529'on port 57286 from server 127.0.0.1 13000 The server should: Wait for a connection from a new client Receive an input string from the client process. If input is equal to 'exit' then go to step 6 Compute a digest by adding the ASCII representation of all the characters in the character string Print the digest and the port numbers as shown below Send the digest back to the client and go back to step 2 Close connection and go back to step 1 1. 2. 3. 4. 5. 6. client (IP: 127.0.0.1 port: 57286sent'test 1 'and we sent back 529
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
