You must implement two programs (using Python), one client and one server and two functions (methods), to
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:
- 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
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch