Question: Socket Programming in Python for client/server. Rules 1- When the SERVER is started, a message SERVER IS STARTED will be printed, indicating that the SERVER

Socket Programming in Python for client/server.
Rules 1- When the SERVER is started, a message "SERVER IS STARTED" will be printed, indicating that the SERVER is now listening on TCP PORT 3310. CLIENT has to connect to the SERVER TCP PORT 3310 and send your ID via the connection established.
Rule 2- The SERVER will then send a 5 char string ddddd to the CLIENT. CLIENT will need to create TCP socket s_2 at port ddddd to accept a mew connection. The SERVER will intitate the new connection 1 second later after sending ddddd. Upon accepting the connection, a new socket s2 will be returned.
Rule 3- SERVER will then send a 12 string char string "fffff,eeeee" to the CLIENT using the new connection CLIENT needs to decode the message and create a UDP socket s3 to send a variable num (510) to SERVER on port fffff. Then SERVER will send a char string xxx with length num * 10 to CLIENT one second after receiving num and CLIENT will reveive the string using s3 on port eeeee. SERVER will send the string xxx 5times, once every 1 second. CLIENT only needs to receive any one of them.
Rule 4- When the CLIENT received the char string xxx, it will send back the string to the SERVER at UDP port fffff. Similar to the SERVER, the string will be sent 5 times, once every 1 second. The SERVER will check if the two strings are the same.
PLS use notes and explain the process so others can understand. Thanks for your help!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!