• 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
• 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