Question: 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

1 Expert Approved Answer
Step: 1 Unlock

We have to write a python program to send data between server and client using sockets Program plan ... View full answer

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 Programming Questions!