Write Echo Server Client Python Code Using Socketserver Framework Https Docspythonorg 3 Li Q37080997

• Write an Echo Server/Client python code usingsocketserver framework(https://docs.python.org/3/library/socketserver.html)

Echo Server:

a) should receive a string from Client
b) If the string containssecret code “SECRET”, then server should return all the digits inthe string and count of digits
c) close the connection withclient

Echo Client:

a) Shouldsendastringtotheserver b) Should receive the output

Example: If client sends “socket 123345nfjkw345SECRET “, then server should reply Digits:123345345 Count: 9

8XAQB0GwTK02SuOwAAAABJRU5ErkJggg==

• File Transfer over network using sockets.

Server:

a) should receive data from Client (create a text file) b) writethe received data in a file
c) close the connection

Client:

a) Connect with the server b) Send the file
c) close theconnection


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.