Question: PYTHON SOCKETS I NEED A UNIQUE ANSWER PLEASE DO NOT SUBMIT PREVIOUS CHEGG ANSWERS Write python program which create TCP connection between server and client
PYTHON SOCKETS
I NEED A UNIQUE ANSWER PLEASE DO NOT SUBMIT PREVIOUS CHEGG ANSWERS
Write python program which create TCP connection between server and client and do the following: (You need to use datetime, hashlib, random modules)
When the client connect to a server, it will send one of the following commands (time, md5 STRING, random x,y)
The server will receive the command and based on the command will send back data to the user:
Time: the server will send back the current time using the datetime module.
MD5: the server will take the string along with the hash word and calculate the MD5 value for it and then send the hash to the client.
Random: the server will generate a random number between x, y and will send it back to the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
