You must implement two programs (using Python), one client and one server and two functions (methods), to encode (client-side) and to decode (server-side). The customer:
You must implement two programs (using Python), one client and one server and two functions (methods), to encode (client-side) and to decode (server-side).
The customer:
- Reads user data (from keyboard)
- Encrypts data in B8ZS
- Sends a "send request" to the server through the socket, and waits
-If the server sends a "ready to receive", then
Sends the encoded stream to the server via socket
The server:
- Confirms that customer data has been received
- Decodes the data stream and prints it on the screen
Example: ( It is always assumed that the polarity of the first 1 is positive).
1. The user types: 1100000000110000010
2. Client encodes data: + -000- + 0 + - + - 00000 + 0
3. Server receives the encoded stream and decodes it to: 1100000000110000010
4. The server displays on the screen 1100000000110000010
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
We have to write a python program to send data between server and client using sockets Program plan ...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started